<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts: posix/posix.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">ESP8266ILI9341DisplayProject</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_201f8e026df3a06f760b6173e807b6b9.html">posix</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">posix.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>POSIX wrapper for FatFS.  
<a href="#details">More...</a></p>

<p><a href="posix_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structstat.html">stat</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX stat structure.  <a href="structstat.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structutimbuf.html">utimbuf</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX utimbuf structure.  <a href="structutimbuf.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdirent.html">dirent</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct____file.html">__file</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">FILE type structure.  <a href="struct____file.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a1c3d85ae80df5590fa314acffd8bf840"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a1c3d85ae80df5590fa314acffd8bf840">POSIX</a></td></tr>
<tr class="separator:a1c3d85ae80df5590fa314acffd8bf840"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd709f201d7643c3909621f620ea648a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#afd709f201d7643c3909621f620ea648a">MAX_NAME_LEN</a>&#160;&#160;&#160;13</td></tr>
<tr class="separator:afd709f201d7643c3909621f620ea648a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae730c85752284268b39560df693cb207"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#ae730c85752284268b39560df693cb207">lstat</a>&#160;&#160;&#160;<a class="el" href="structstat.html">stat</a></td></tr>
<tr class="memdesc:ae730c85752284268b39560df693cb207"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX <a class="el" href="posix_8h.html#ae730c85752284268b39560df693cb207" title="POSIX lstat() ">lstat()</a>  <a href="#ae730c85752284268b39560df693cb207">More...</a><br /></td></tr>
<tr class="separator:ae730c85752284268b39560df693cb207"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a9bfdbe4548d021af62fb947d2b6b82"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a9a9bfdbe4548d021af62fb947d2b6b82">__SRD</a>&#160;&#160;&#160;0x0001      /* OK to read */</td></tr>
<tr class="separator:a9a9bfdbe4548d021af62fb947d2b6b82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af08f227b04a8833c49ce8b798ca7f403"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#af08f227b04a8833c49ce8b798ca7f403">__SWR</a>&#160;&#160;&#160;0x0002      /* OK to write */</td></tr>
<tr class="separator:af08f227b04a8833c49ce8b798ca7f403"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7934343459dfe68ced51599a7b9a316f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a7934343459dfe68ced51599a7b9a316f">__SSTR</a>&#160;&#160;&#160;0x0004      /* this is an sprintf/snprintf string */</td></tr>
<tr class="separator:a7934343459dfe68ced51599a7b9a316f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f8a55506b9fec8dff9442bec5a86dee"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a4f8a55506b9fec8dff9442bec5a86dee">__SPGM</a>&#160;&#160;&#160;0x0008      /* fmt string is in progmem */</td></tr>
<tr class="separator:a4f8a55506b9fec8dff9442bec5a86dee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37117409538ffeec47002d6580e4b703"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a37117409538ffeec47002d6580e4b703">__SERR</a>&#160;&#160;&#160;0x0010      /* found error */</td></tr>
<tr class="separator:a37117409538ffeec47002d6580e4b703"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63f42c2888ed9bd0f00ee25002ee3b02"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a63f42c2888ed9bd0f00ee25002ee3b02">__SEOF</a>&#160;&#160;&#160;0x0020      /* found EOF */</td></tr>
<tr class="separator:a63f42c2888ed9bd0f00ee25002ee3b02"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad541703cea6b378290dcf2ea448d2879"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#ad541703cea6b378290dcf2ea448d2879">__SUNGET</a>&#160;&#160;&#160;0x040      /* ungetc() happened */</td></tr>
<tr class="separator:ad541703cea6b378290dcf2ea448d2879"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a910f0d9b3aff8a868393ce38fe91cc7d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a910f0d9b3aff8a868393ce38fe91cc7d">__SMALLOC</a>&#160;&#160;&#160;0x80      /* handle is malloc()ed */</td></tr>
<tr class="separator:a910f0d9b3aff8a868393ce38fe91cc7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4dc4d45e07d2abc899bcaf04b2846a87"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a4dc4d45e07d2abc899bcaf04b2846a87">O_ACCMODE</a>&#160;&#160;&#160;00000003 /*&lt; <a class="el" href="posix_8h.html#af104a2c05bef787e54c6925616e867df">read</a>, <a class="el" href="posix_8h.html#a072435300ac99e8d7c3749f45166e797">write</a>, <a class="el" href="posix_8h.html#af104a2c05bef787e54c6925616e867df">read</a>-<a class="el" href="posix_8h.html#a072435300ac99e8d7c3749f45166e797">write</a> modes */</td></tr>
<tr class="memdesc:a4dc4d45e07d2abc899bcaf04b2846a87"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX open modes - no other combination are allowed.  <a href="#a4dc4d45e07d2abc899bcaf04b2846a87">More...</a><br /></td></tr>
<tr class="separator:a4dc4d45e07d2abc899bcaf04b2846a87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a68c9ffaac7dbcd652225dd7c06a54b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a7a68c9ffaac7dbcd652225dd7c06a54b">O_RDONLY</a>&#160;&#160;&#160;00000000 /*&lt; Read only */</td></tr>
<tr class="separator:a7a68c9ffaac7dbcd652225dd7c06a54b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11b644a8526139c4cc1850dac1271ced"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a11b644a8526139c4cc1850dac1271ced">O_WRONLY</a>&#160;&#160;&#160;00000001 /*&lt; Write only */</td></tr>
<tr class="separator:a11b644a8526139c4cc1850dac1271ced"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb0586253488ee61072b73557eeb873b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#abb0586253488ee61072b73557eeb873b">O_RDWR</a>&#160;&#160;&#160;00000002 /*&lt; Read/Write */</td></tr>
<tr class="separator:abb0586253488ee61072b73557eeb873b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1cf6b1de1fffedaa1d26b189e9a8d2cc"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a1cf6b1de1fffedaa1d26b189e9a8d2cc">O_CREAT</a>&#160;&#160;&#160;00000100 /*&lt; Create file only if it does not exist */</td></tr>
<tr class="separator:a1cf6b1de1fffedaa1d26b189e9a8d2cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f5acfe79fafe14b6694447bd0e9f10b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a9f5acfe79fafe14b6694447bd0e9f10b">O_EXCL</a></td></tr>
<tr class="separator:a9f5acfe79fafe14b6694447bd0e9f10b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e375ab32c7ef4581b026be28e4cc116"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a2e375ab32c7ef4581b026be28e4cc116">O_NOCTTY</a>&#160;&#160;&#160;00000400 /*&lt; @todo */</td></tr>
<tr class="separator:a2e375ab32c7ef4581b026be28e4cc116"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1d67e453fb3031f40f8cd3403773813"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#ad1d67e453fb3031f40f8cd3403773813">O_TRUNC</a>&#160;&#160;&#160;00001000 /*&lt; Truncate if exists */</td></tr>
<tr class="separator:ad1d67e453fb3031f40f8cd3403773813"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae036f789407d21f07b211552d67b3214"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#ae036f789407d21f07b211552d67b3214">O_APPEND</a>&#160;&#160;&#160;00002000 /*&lt; All writes are to <a class="el" href="ff_8h.html#a59adc4c82490d23754cd39c2fb99b0da">EOF</a> */</td></tr>
<tr class="separator:ae036f789407d21f07b211552d67b3214"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39d33ce33804efd4d52606d59071c6d8"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a39d33ce33804efd4d52606d59071c6d8">O_NONBLOCK</a>&#160;&#160;&#160;00004000 /*&lt; @todo */</td></tr>
<tr class="separator:a39d33ce33804efd4d52606d59071c6d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36fa9b2e726512bc17a7a6d3e39002be"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a36fa9b2e726512bc17a7a6d3e39002be">O_BINARY</a>&#160;&#160;&#160;00000004 /*&lt; Binary */</td></tr>
<tr class="separator:a36fa9b2e726512bc17a7a6d3e39002be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9abb6d01b83e0bc5a6e2adeceb7dffd7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a9abb6d01b83e0bc5a6e2adeceb7dffd7">O_TEXT</a>&#160;&#160;&#160;00000004 /*&lt; Text End Of Line translation */</td></tr>
<tr class="separator:a9abb6d01b83e0bc5a6e2adeceb7dffd7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5bee51e9ee68b83ab11d4b340f7200b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#ab5bee51e9ee68b83ab11d4b340f7200b">S_IFMT</a>&#160;&#160;&#160;0170000  /*&lt; These bits determine file type.  */</td></tr>
<tr class="memdesc:ab5bee51e9ee68b83ab11d4b340f7200b"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX File types, see fstat and stat.  <a href="#ab5bee51e9ee68b83ab11d4b340f7200b">More...</a><br /></td></tr>
<tr class="separator:ab5bee51e9ee68b83ab11d4b340f7200b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11fb0652b963a735f3377eb1c9239f2d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a11fb0652b963a735f3377eb1c9239f2d">S_IFDIR</a>&#160;&#160;&#160;0040000  /*&lt; Directory.  */</td></tr>
<tr class="separator:a11fb0652b963a735f3377eb1c9239f2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef3a1d1ba22c83e30b5c834dd343b2a8"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#aef3a1d1ba22c83e30b5c834dd343b2a8">S_IFCHR</a>&#160;&#160;&#160;0020000  /*&lt; Character device.  */</td></tr>
<tr class="separator:aef3a1d1ba22c83e30b5c834dd343b2a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c5b74a1cb1a1ae83572500b94e1938f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a5c5b74a1cb1a1ae83572500b94e1938f">S_IFBLK</a>&#160;&#160;&#160;0060000  /*&lt; Block device.  */</td></tr>
<tr class="separator:a5c5b74a1cb1a1ae83572500b94e1938f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1aaa48b192a5dd3b6d7ee91fc98cd17d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a1aaa48b192a5dd3b6d7ee91fc98cd17d">S_IFREG</a>&#160;&#160;&#160;0100000  /*&lt; Regular file.  */</td></tr>
<tr class="separator:a1aaa48b192a5dd3b6d7ee91fc98cd17d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4966f25d9f03a7a06bc47ac729fd86cf"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a4966f25d9f03a7a06bc47ac729fd86cf">S_IFIFO</a>&#160;&#160;&#160;0010000  /*&lt; FIFO.  */</td></tr>
<tr class="separator:a4966f25d9f03a7a06bc47ac729fd86cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afef163ce62372757e84bd9fc88c07aad"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#afef163ce62372757e84bd9fc88c07aad">S_IFLNK</a>&#160;&#160;&#160;0120000  /*&lt; Symbolic link.  */</td></tr>
<tr class="separator:afef163ce62372757e84bd9fc88c07aad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28e80cd43106882904be148b2a397d42"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a28e80cd43106882904be148b2a397d42">S_IFSOCK</a>&#160;&#160;&#160;0140000  /*&lt; Socket.  */</td></tr>
<tr class="separator:a28e80cd43106882904be148b2a397d42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96c6486aa02a821aa4199525f5e79f60"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a96c6486aa02a821aa4199525f5e79f60">S_IREAD</a>&#160;&#160;&#160;0400     /*&lt; Read by owner.  */</td></tr>
<tr class="separator:a96c6486aa02a821aa4199525f5e79f60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40eb4ad4bcc675d265615042657c37b7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a40eb4ad4bcc675d265615042657c37b7">S_IWRITE</a>&#160;&#160;&#160;0200     /*&lt; Write by owner.  */</td></tr>
<tr class="separator:a40eb4ad4bcc675d265615042657c37b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49a6665b56f38f52ee9b157cefcf4d68"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a49a6665b56f38f52ee9b157cefcf4d68">S_IEXEC</a>&#160;&#160;&#160;0100     /*&lt; Execute by owner.  */</td></tr>
<tr class="separator:a49a6665b56f38f52ee9b157cefcf4d68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc77a7a79522cf692b584af4b20cd256"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#adc77a7a79522cf692b584af4b20cd256">S_ISTYPE</a>(mode,  mask)&#160;&#160;&#160;(((mode) &amp; <a class="el" href="posix_8h.html#ab5bee51e9ee68b83ab11d4b340f7200b">S_IFMT</a>) == (mask))</td></tr>
<tr class="memdesc:adc77a7a79522cf692b584af4b20cd256"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX File type test macros.  <a href="#adc77a7a79522cf692b584af4b20cd256">More...</a><br /></td></tr>
<tr class="separator:adc77a7a79522cf692b584af4b20cd256"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3746cdc5aac871e6f6504fbcbd29ef1d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a3746cdc5aac871e6f6504fbcbd29ef1d">S_ISDIR</a>(mode)&#160;&#160;&#160;<a class="el" href="posix_8h.html#adc77a7a79522cf692b584af4b20cd256">S_ISTYPE</a>((mode), <a class="el" href="posix_8h.html#a11fb0652b963a735f3377eb1c9239f2d">S_IFDIR</a>)</td></tr>
<tr class="separator:a3746cdc5aac871e6f6504fbcbd29ef1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae33be85d242a1317f972cf2b189f03d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#aae33be85d242a1317f972cf2b189f03d">S_ISCHR</a>(mode)&#160;&#160;&#160;<a class="el" href="posix_8h.html#adc77a7a79522cf692b584af4b20cd256">S_ISTYPE</a>((mode), <a class="el" href="posix_8h.html#aef3a1d1ba22c83e30b5c834dd343b2a8">S_IFCHR</a>)</td></tr>
<tr class="separator:aae33be85d242a1317f972cf2b189f03d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b86a24d84c3cfce39cc832a017656ba"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a8b86a24d84c3cfce39cc832a017656ba">S_ISBLK</a>(mode)&#160;&#160;&#160;<a class="el" href="posix_8h.html#adc77a7a79522cf692b584af4b20cd256">S_ISTYPE</a>((mode), <a class="el" href="posix_8h.html#a5c5b74a1cb1a1ae83572500b94e1938f">S_IFBLK</a>)</td></tr>
<tr class="separator:a8b86a24d84c3cfce39cc832a017656ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad0f32c2c182238f2ff71c83e6ab65a0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#aad0f32c2c182238f2ff71c83e6ab65a0">S_ISREG</a>(mode)&#160;&#160;&#160;<a class="el" href="posix_8h.html#adc77a7a79522cf692b584af4b20cd256">S_ISTYPE</a>((mode), <a class="el" href="posix_8h.html#a1aaa48b192a5dd3b6d7ee91fc98cd17d">S_IFREG</a>)</td></tr>
<tr class="separator:aad0f32c2c182238f2ff71c83e6ab65a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84c7dbf5cf2fdfb690f76348b60a8cb7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a84c7dbf5cf2fdfb690f76348b60a8cb7">S_IRUSR</a>&#160;&#160;&#160;<a class="el" href="posix_8h.html#a96c6486aa02a821aa4199525f5e79f60">S_IREAD</a>                     /*&lt; Read by owner.  */</td></tr>
<tr class="separator:a84c7dbf5cf2fdfb690f76348b60a8cb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad70001754261c15a1bdc8e876c6d09d7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#ad70001754261c15a1bdc8e876c6d09d7">S_IWUSR</a>&#160;&#160;&#160;<a class="el" href="posix_8h.html#a40eb4ad4bcc675d265615042657c37b7">S_IWRITE</a>                    /*&lt; Write by owner.  */</td></tr>
<tr class="separator:ad70001754261c15a1bdc8e876c6d09d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af10a35e3950795d6ee4e07157d000131"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#af10a35e3950795d6ee4e07157d000131">S_IXUSR</a>&#160;&#160;&#160;<a class="el" href="posix_8h.html#a49a6665b56f38f52ee9b157cefcf4d68">S_IEXEC</a>                     /*&lt; Execute by owner.  */</td></tr>
<tr class="separator:af10a35e3950795d6ee4e07157d000131"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe3da42e762f6362c93454682fad5eb5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#afe3da42e762f6362c93454682fad5eb5">S_IRWXU</a>&#160;&#160;&#160;(<a class="el" href="posix_8h.html#a96c6486aa02a821aa4199525f5e79f60">S_IREAD</a>|<a class="el" href="posix_8h.html#a40eb4ad4bcc675d265615042657c37b7">S_IWRITE</a>|<a class="el" href="posix_8h.html#a49a6665b56f38f52ee9b157cefcf4d68">S_IEXEC</a>)  /*&lt; Read,Write,Execute by owner */</td></tr>
<tr class="separator:afe3da42e762f6362c93454682fad5eb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f5f280b929768113739fb34d6f7be8a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a4f5f280b929768113739fb34d6f7be8a">S_IRGRP</a>&#160;&#160;&#160;(<a class="el" href="posix_8h.html#a84c7dbf5cf2fdfb690f76348b60a8cb7">S_IRUSR</a> &gt;&gt; 3)              /*&lt; Read by group.  */</td></tr>
<tr class="separator:a4f5f280b929768113739fb34d6f7be8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6774871a90d9442f00abe18b87fee6e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#ae6774871a90d9442f00abe18b87fee6e">S_IWGRP</a>&#160;&#160;&#160;(<a class="el" href="posix_8h.html#ad70001754261c15a1bdc8e876c6d09d7">S_IWUSR</a> &gt;&gt; 3)              /*&lt; Write by group.  */</td></tr>
<tr class="separator:ae6774871a90d9442f00abe18b87fee6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a042e69ac0e7dd56e5cfcd9e97d010323"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a042e69ac0e7dd56e5cfcd9e97d010323">S_IXGRP</a>&#160;&#160;&#160;(<a class="el" href="posix_8h.html#af10a35e3950795d6ee4e07157d000131">S_IXUSR</a> &gt;&gt; 3)              /*&lt; Execute by group.  */</td></tr>
<tr class="separator:a042e69ac0e7dd56e5cfcd9e97d010323"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a230c642d2bb81f15f85c122b1883de5c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a230c642d2bb81f15f85c122b1883de5c">S_IRWXG</a>&#160;&#160;&#160;(<a class="el" href="posix_8h.html#afe3da42e762f6362c93454682fad5eb5">S_IRWXU</a> &gt;&gt; 3)              /*&lt; Read,Write,Execute by user */</td></tr>
<tr class="separator:a230c642d2bb81f15f85c122b1883de5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a071147a0cb995036967c80f64b1f74b9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a071147a0cb995036967c80f64b1f74b9">S_IROTH</a>&#160;&#160;&#160;(<a class="el" href="posix_8h.html#a4f5f280b929768113739fb34d6f7be8a">S_IRGRP</a> &gt;&gt; 3)              /*&lt; Read by others.  */</td></tr>
<tr class="separator:a071147a0cb995036967c80f64b1f74b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5303f49f26293acdb9533756c78322fb"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a5303f49f26293acdb9533756c78322fb">S_IWOTH</a>&#160;&#160;&#160;(<a class="el" href="posix_8h.html#ae6774871a90d9442f00abe18b87fee6e">S_IWGRP</a> &gt;&gt; 3)              /*&lt; Write by others.  */</td></tr>
<tr class="separator:a5303f49f26293acdb9533756c78322fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40223db1b95a04f5b28cceb3c34cfebd"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a40223db1b95a04f5b28cceb3c34cfebd">S_IXOTH</a>&#160;&#160;&#160;(<a class="el" href="posix_8h.html#a042e69ac0e7dd56e5cfcd9e97d010323">S_IXGRP</a> &gt;&gt; 3)              /*&lt; Execute by others.  */</td></tr>
<tr class="separator:a40223db1b95a04f5b28cceb3c34cfebd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b93e0da7fe32bbd4926626bffad96b1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a5b93e0da7fe32bbd4926626bffad96b1">S_IRWXO</a>&#160;&#160;&#160;(<a class="el" href="posix_8h.html#a230c642d2bb81f15f85c122b1883de5c">S_IRWXG</a> &gt;&gt; 3)              /*&lt; Read,Write,Execute by other */</td></tr>
<tr class="separator:a5b93e0da7fe32bbd4926626bffad96b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28002092a0615e21c9943a426e81015f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a28002092a0615e21c9943a426e81015f">modecmp</a>(str,  pat)&#160;&#160;&#160;(<a class="el" href="stringsup_8h.html#abee00aec80e542c31b536a531ffe761a">strcmp</a>(str, pat) == 0 ? 1: 0)</td></tr>
<tr class="memdesc:a28002092a0615e21c9943a426e81015f"><td class="mdescLeft">&#160;</td><td class="mdescRight">used in <a class="el" href="posix_8c.html" title="POSIX wrapper for FatFS. ">posix.c</a> to compare to ascii file modes  <a href="#a28002092a0615e21c9943a426e81015f">More...</a><br /></td></tr>
<tr class="separator:a28002092a0615e21c9943a426e81015f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5a6f01348af03d4c2cdd9d557880c4d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#ac5a6f01348af03d4c2cdd9d557880c4d">FATFS_R</a>&#160;&#160;&#160;(<a class="el" href="posix_8h.html#a84c7dbf5cf2fdfb690f76348b60a8cb7">S_IRUSR</a> | <a class="el" href="posix_8h.html#a4f5f280b929768113739fb34d6f7be8a">S_IRGRP</a> | <a class="el" href="posix_8h.html#a071147a0cb995036967c80f64b1f74b9">S_IROTH</a>)   /*&lt; <a class="el" href="ff_8c.html#a3d7aad0939745576943767bf6c410eaf">FatFs</a> Read perms */</td></tr>
<tr class="memdesc:ac5a6f01348af03d4c2cdd9d557880c4d"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="structFATFS.html">FATFS</a> open modes.  <a href="#ac5a6f01348af03d4c2cdd9d557880c4d">More...</a><br /></td></tr>
<tr class="separator:ac5a6f01348af03d4c2cdd9d557880c4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58a8434d968e434626088e2dc6ae6124"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a58a8434d968e434626088e2dc6ae6124">FATFS_W</a>&#160;&#160;&#160;(<a class="el" href="posix_8h.html#ad70001754261c15a1bdc8e876c6d09d7">S_IWUSR</a> | <a class="el" href="posix_8h.html#ae6774871a90d9442f00abe18b87fee6e">S_IWGRP</a> | <a class="el" href="posix_8h.html#a5303f49f26293acdb9533756c78322fb">S_IWOTH</a>)   /*&lt; <a class="el" href="ff_8c.html#a3d7aad0939745576943767bf6c410eaf">FatFs</a> Write perms */</td></tr>
<tr class="separator:a58a8434d968e434626088e2dc6ae6124"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a88f1032e29e7cc97a96b40cdc996a5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a0a88f1032e29e7cc97a96b40cdc996a5">FATFS_X</a>&#160;&#160;&#160;(<a class="el" href="posix_8h.html#af10a35e3950795d6ee4e07157d000131">S_IXUSR</a> | <a class="el" href="posix_8h.html#a042e69ac0e7dd56e5cfcd9e97d010323">S_IXGRP</a> | <a class="el" href="posix_8h.html#a40223db1b95a04f5b28cceb3c34cfebd">S_IXOTH</a>)   /*&lt; <a class="el" href="ff_8c.html#a3d7aad0939745576943767bf6c410eaf">FatFs</a> Execute perms */</td></tr>
<tr class="separator:a0a88f1032e29e7cc97a96b40cdc996a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59adc4c82490d23754cd39c2fb99b0da"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a59adc4c82490d23754cd39c2fb99b0da">EOF</a>&#160;&#160;&#160;(-1)</td></tr>
<tr class="memdesc:a59adc4c82490d23754cd39c2fb99b0da"><td class="mdescLeft">&#160;</td><td class="mdescRight">End of file or device read.  <a href="#a59adc4c82490d23754cd39c2fb99b0da">More...</a><br /></td></tr>
<tr class="separator:a59adc4c82490d23754cd39c2fb99b0da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d112bae8fd35be772185b6ec6bcbe64"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a0d112bae8fd35be772185b6ec6bcbe64">SEEK_SET</a>&#160;&#160;&#160;0</td></tr>
<tr class="memdesc:a0d112bae8fd35be772185b6ec6bcbe64"><td class="mdescLeft">&#160;</td><td class="mdescRight">Seek offset macros.  <a href="#a0d112bae8fd35be772185b6ec6bcbe64">More...</a><br /></td></tr>
<tr class="separator:a0d112bae8fd35be772185b6ec6bcbe64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c8d0b76b470ba65a43ca46a88320f39"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a4c8d0b76b470ba65a43ca46a88320f39">SEEK_CUR</a>&#160;&#160;&#160;1</td></tr>
<tr class="separator:a4c8d0b76b470ba65a43ca46a88320f39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2a2e6c114780c3071efd24f16c7f7d8"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#ad2a2e6c114780c3071efd24f16c7f7d8">SEEK_END</a>&#160;&#160;&#160;2</td></tr>
<tr class="separator:ad2a2e6c114780c3071efd24f16c7f7d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c5eecb22513a88c24ae5831a3265e54"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a2c5eecb22513a88c24ae5831a3265e54">MAX_FILES</a>&#160;&#160;&#160;16</td></tr>
<tr class="memdesc:a2c5eecb22513a88c24ae5831a3265e54"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maximum number of POSIX file handles.  <a href="#a2c5eecb22513a88c24ae5831a3265e54">More...</a><br /></td></tr>
<tr class="separator:a2c5eecb22513a88c24ae5831a3265e54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaca70138f0cb63ddb026921afc635179"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#aaca70138f0cb63ddb026921afc635179">stdin</a>&#160;&#160;&#160;(<a class="el" href="posix_8h.html#aae2f027325f7e73c3aa5e7dc990bd90d">__iob</a>[0])</td></tr>
<tr class="memdesc:aaca70138f0cb63ddb026921afc635179"><td class="mdescLeft">&#160;</td><td class="mdescRight">define stdin, stdout and stderr  <a href="#aaca70138f0cb63ddb026921afc635179">More...</a><br /></td></tr>
<tr class="separator:aaca70138f0cb63ddb026921afc635179"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c0ef221f95f64e8632451312fd18cc8"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a0c0ef221f95f64e8632451312fd18cc8">stdout</a>&#160;&#160;&#160;(<a class="el" href="posix_8h.html#aae2f027325f7e73c3aa5e7dc990bd90d">__iob</a>[1])</td></tr>
<tr class="separator:a0c0ef221f95f64e8632451312fd18cc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ce35bd5ba5021fd3b2e951e8f497656"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a5ce35bd5ba5021fd3b2e951e8f497656">stderr</a>&#160;&#160;&#160;(<a class="el" href="posix_8h.html#aae2f027325f7e73c3aa5e7dc990bd90d">__iob</a>[2])</td></tr>
<tr class="separator:a5ce35bd5ba5021fd3b2e951e8f497656"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a793fcb8f10b6b8746d4186012929ddf1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a793fcb8f10b6b8746d4186012929ddf1">fdev_set_udata</a>(stream,  u)&#160;&#160;&#160;do { (stream)-&gt;udata = u; } while(0)</td></tr>
<tr class="memdesc:a793fcb8f10b6b8746d4186012929ddf1"><td class="mdescLeft">&#160;</td><td class="mdescRight">device IO udata  <a href="#a793fcb8f10b6b8746d4186012929ddf1">More...</a><br /></td></tr>
<tr class="separator:a793fcb8f10b6b8746d4186012929ddf1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac04f5faa8e86a4ce4ae084d85386af40"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#ac04f5faa8e86a4ce4ae084d85386af40">fdev_get_udata</a>(stream)&#160;&#160;&#160;((stream)-&gt;udata)</td></tr>
<tr class="separator:ac04f5faa8e86a4ce4ae084d85386af40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a280c47b9edff2751b8dbb9a715dc44c5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a280c47b9edff2751b8dbb9a715dc44c5">_FDEV_EOF</a>&#160;&#160;&#160;(-1)</td></tr>
<tr class="memdesc:a280c47b9edff2751b8dbb9a715dc44c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">device status flags  <a href="#a280c47b9edff2751b8dbb9a715dc44c5">More...</a><br /></td></tr>
<tr class="separator:a280c47b9edff2751b8dbb9a715dc44c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a132917c782a0ba854c3ae9abe57c3b12"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a132917c782a0ba854c3ae9abe57c3b12">_FDEV_ERR</a>&#160;&#160;&#160;(-2)</td></tr>
<tr class="separator:a132917c782a0ba854c3ae9abe57c3b12"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79826a1c733e4f67843256d34ad64352"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a79826a1c733e4f67843256d34ad64352">_FDEV_SETUP_READ</a>&#160;&#160;&#160;<a class="el" href="posix_8h.html#a9a9bfdbe4548d021af62fb947d2b6b82">__SRD</a></td></tr>
<tr class="separator:a79826a1c733e4f67843256d34ad64352"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a822a791a1c06a12b95c14ace75b48ad2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a822a791a1c06a12b95c14ace75b48ad2">_FDEV_SETUP_WRITE</a>&#160;&#160;&#160;<a class="el" href="posix_8h.html#af08f227b04a8833c49ce8b798ca7f403">__SWR</a></td></tr>
<tr class="separator:a822a791a1c06a12b95c14ace75b48ad2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93db55caeeaf13488a635f8896a6bdf3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a93db55caeeaf13488a635f8896a6bdf3">_FDEV_SETUP_RW</a>&#160;&#160;&#160;(<a class="el" href="posix_8h.html#a9a9bfdbe4548d021af62fb947d2b6b82">__SRD</a>|<a class="el" href="posix_8h.html#af08f227b04a8833c49ce8b798ca7f403">__SWR</a>)</td></tr>
<tr class="separator:a93db55caeeaf13488a635f8896a6bdf3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a451f1b5788fa7cc5d33db47a5992e7a6"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a451f1b5788fa7cc5d33db47a5992e7a6">dev_t</a></td></tr>
<tr class="memdesc:a451f1b5788fa7cc5d33db47a5992e7a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">make sure we use our EDOM and ERANGE values  <a href="#a451f1b5788fa7cc5d33db47a5992e7a6">More...</a><br /></td></tr>
<tr class="separator:a451f1b5788fa7cc5d33db47a5992e7a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed4e918b44240739869c4bdb1c4787a9"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#aed4e918b44240739869c4bdb1c4787a9">ino_t</a></td></tr>
<tr class="separator:aed4e918b44240739869c4bdb1c4787a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8f4385bb42836d1e3ad4fea9d71d1b9"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#af8f4385bb42836d1e3ad4fea9d71d1b9">mode_t</a></td></tr>
<tr class="separator:af8f4385bb42836d1e3ad4fea9d71d1b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e3c03dae15b90102eb1770dd95adadc"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a9e3c03dae15b90102eb1770dd95adadc">nlink_t</a></td></tr>
<tr class="separator:a9e3c03dae15b90102eb1770dd95adadc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f43c63879b4ab6960f41e756392c77d"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a0f43c63879b4ab6960f41e756392c77d">uid_t</a></td></tr>
<tr class="separator:a0f43c63879b4ab6960f41e756392c77d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5569b17fdf47f9bb7e3b4b94aa083c39"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a5569b17fdf47f9bb7e3b4b94aa083c39">gid_t</a></td></tr>
<tr class="separator:a5569b17fdf47f9bb7e3b4b94aa083c39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac46e03c2018bada012333c31f41df12"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#aac46e03c2018bada012333c31f41df12">off_t</a></td></tr>
<tr class="separator:aac46e03c2018bada012333c31f41df12"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2706f994576080967d7633282dfcabbf"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a2706f994576080967d7633282dfcabbf">blkcnt_t</a></td></tr>
<tr class="separator:a2706f994576080967d7633282dfcabbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a390f3028d0805a15c3d28ee27439c389"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a390f3028d0805a15c3d28ee27439c389">blksize_t</a></td></tr>
<tr class="separator:a390f3028d0805a15c3d28ee27439c389"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3346b04b0420b32ccf6b706551b70762"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a></td></tr>
<tr class="separator:a3346b04b0420b32ccf6b706551b70762"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a170745d0d946e79c4c2a056d1d158996"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="earth2wireframe_8c.html#a32f2e37ee053cf2ce8ca28d1f74630e5">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a170745d0d946e79c4c2a056d1d158996">ssize_t</a></td></tr>
<tr class="separator:a170745d0d946e79c4c2a056d1d158996"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab29c02d05027f32f3f17bee2e4839777"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structutimbuf.html">utimbuf</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#ab29c02d05027f32f3f17bee2e4839777">utime_t</a></td></tr>
<tr class="memdesc:ab29c02d05027f32f3f17bee2e4839777"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX utimbuf structure.  <a href="#ab29c02d05027f32f3f17bee2e4839777">More...</a><br /></td></tr>
<tr class="separator:ab29c02d05027f32f3f17bee2e4839777"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6673e8f64ca9ebd7e26e6289dca06e87"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structdirent.html">dirent</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a6673e8f64ca9ebd7e26e6289dca06e87">dirent_t</a></td></tr>
<tr class="separator:a6673e8f64ca9ebd7e26e6289dca06e87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed4dabeb9f7c518ded42f930a04abce8"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="struct____file.html">__file</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a></td></tr>
<tr class="memdesc:aed4dabeb9f7c518ded42f930a04abce8"><td class="mdescLeft">&#160;</td><td class="mdescRight">define FILE type  <a href="#aed4dabeb9f7c518ded42f930a04abce8">More...</a><br /></td></tr>
<tr class="separator:aed4dabeb9f7c518ded42f930a04abce8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ac29db18b9f0e7e7d5c43d558ccffea6a"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6a">POSIX_errno</a> { <br />
&#160;&#160;<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa1c6a3022e8b55d43daf722d13d7e0669">EOK</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa156dcc38d9ba0765c6150544963ed267">EPERM</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa996f6f948b613bccc738ff8517413c1a">ENOENT</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa4e376a13d0c1557d399f473218915625">ESRCH</a>, 
<br />
&#160;&#160;<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa8cc241d56d59d11ceea8efc37bec8ed4">EINTR</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa6d2c32b1730ea078f2802b34b1258a4c">EIO</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa1c0d17ac093eff038b479dba021361bb">ENXIO</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa755e0cbde2880a406893ad61304bac29">E2BIG</a>, 
<br />
&#160;&#160;<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aadabd09d64c920a9a75f60165fda651d5">ENOEXEC</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa87d4476eed38f45439e257081c9de369">EBADF</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aae63e89f8fc44ef75addd0c1acc9c4828">ECHILD</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa4bde0de54c0b708a605ed5095959c14e">EAGAIN</a>, 
<br />
&#160;&#160;<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aaec0aa1bb79e2e55ed6d8c165e0611eca">ENOMEM</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa5fa7d65262e81125cecb27e80a26ce98">EACCES</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aaf740610de680c2861ac4042ad4485d15">EFAULT</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aaee10bd01c67a10db950db7d8b814ef3e">ENOTBLK</a>, 
<br />
&#160;&#160;<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa9e2f813a51a5763a892f4b1783778e4b">EBUSY</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa523e02a73d840e490c14a179a997627e">EEXIST</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa953d85d9cf4a55d49811d920c169eded">EXDEV</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aae350307a3417656c8cabc816ba8d07cd">ENODEV</a>, 
<br />
&#160;&#160;<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa8cd7a7b948ee085bbaeb2a210b412d6e">ENOTDIR</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa6a73363cf3fa4dc0d77c4cb3b9d83321">EISDIR</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa7bfd237190819a0a272db7b0aa61d5c8">EINVAL</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aaf8ee28f2eeab568a1b641f6ffc1f90a8">ENFILE</a>, 
<br />
&#160;&#160;<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa0191be5a8b35e30991789c9fe4b2c4cf">EMFILE</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aaf3dc036138d242739c3dbe36c5dfa095">ENOTTY</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa83ea4e18eaac3a62036e1b5723d6e353">ETXTBSY</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa3d9f70d8ebd10e9d4aa420b9cb22cb53">EFBIG</a>, 
<br />
&#160;&#160;<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa2b5265f4c8556b15ec913f61caade1eb">ENOSPC</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa9e5433f0863ce3470329184a3ee495a7">ESPIPE</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa56198247acea7520ae5c6005fbe76a31">EROFS</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aae8a4cdbd60a66eb9705bcb0a655e94fe">EMLINK</a>, 
<br />
&#160;&#160;<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aae573afaecfe768915268b5c70823ee70">EPIPE</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa21e6505c229a4508912c375435eb86a8">EDOM</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa3ffb99860526d55ef132365553694c3d">ERANGE</a>, 
<a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6aa952ba8aa5afef31b7893ed91ae13a56c">EBADMSG</a>
<br />
 }</td></tr>
<tr class="separator:ac29db18b9f0e7e7d5c43d558ccffea6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a31986cce890109c211ccb14151aafd0e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a31986cce890109c211ccb14151aafd0e">isatty</a> (int <a class="el" href="posix_8h.html#aceb657a1b3c10d576aed287714bfd5d1">fileno</a>)</td></tr>
<tr class="memdesc:a31986cce890109c211ccb14151aafd0e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test POSIX fileno if it is a Serial Console/TTY.  <a href="#a31986cce890109c211ccb14151aafd0e">More...</a><br /></td></tr>
<tr class="separator:a31986cce890109c211ccb14151aafd0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d2fa24415329171e6765ed5309b6edd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a1d2fa24415329171e6765ed5309b6edd">fgetc</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *stream)</td></tr>
<tr class="memdesc:a1d2fa24415329171e6765ed5309b6edd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get byte from a TTY device or FatFs file stream <a class="el" href="posix_8c.html#a3e5e6f96d36b5cdacfaf6b3976cd5af2" title="POSIX Open a file with integer mode flags. ">open()</a> or <a class="el" href="posix_8c.html#a8e661c338f41695d1a1e70aed6255e2d" title="POSIX Open a file with path name and ascii file mode string. ">fopen()</a> sets stream-&gt;get = <a class="el" href="posix_8c.html#a5811041feb43c22c6e609a8875475abc" title="Private FatFs function called by fgetc() to get a byte from file stream FIXME buffer this function ca...">fatfs_getc()</a> for FatFs functions See <a class="el" href="posix_8c.html#ab814cff71bcbcc3a72a6c399e5084573" title="Device open functions. ">fdevopen()</a> sets stream-&gt;get for TTY devices.  <a href="#a1d2fa24415329171e6765ed5309b6edd">More...</a><br /></td></tr>
<tr class="separator:a1d2fa24415329171e6765ed5309b6edd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6bdef0a37397953c3b0f14c4d5d0eb10"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a6bdef0a37397953c3b0f14c4d5d0eb10">fputc</a> (int c, <a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *stream)</td></tr>
<tr class="memdesc:a6bdef0a37397953c3b0f14c4d5d0eb10"><td class="mdescLeft">&#160;</td><td class="mdescRight">Put a byte to TTY device or FatFs file stream <a class="el" href="posix_8c.html#a3e5e6f96d36b5cdacfaf6b3976cd5af2" title="POSIX Open a file with integer mode flags. ">open()</a> or <a class="el" href="posix_8c.html#a8e661c338f41695d1a1e70aed6255e2d" title="POSIX Open a file with path name and ascii file mode string. ">fopen()</a> sets stream-&gt;put = fatfs_outc() for FatFs functions See <a class="el" href="posix_8c.html#ab814cff71bcbcc3a72a6c399e5084573" title="Device open functions. ">fdevopen()</a> sets stream-&gt;put get for TTY devices.  <a href="#a6bdef0a37397953c3b0f14c4d5d0eb10">More...</a><br /></td></tr>
<tr class="separator:a6bdef0a37397953c3b0f14c4d5d0eb10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab38efc888190556f106cafb08d17d16f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#ab38efc888190556f106cafb08d17d16f">getchar</a> (void)</td></tr>
<tr class="memdesc:ab38efc888190556f106cafb08d17d16f"><td class="mdescLeft">&#160;</td><td class="mdescRight">functions normally defined as macros  <a href="#ab38efc888190556f106cafb08d17d16f">More...</a><br /></td></tr>
<tr class="separator:ab38efc888190556f106cafb08d17d16f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9195b3de02e450cfdeea1ce97b32da4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#ac9195b3de02e450cfdeea1ce97b32da4">putchar</a> (int c)</td></tr>
<tr class="memdesc:ac9195b3de02e450cfdeea1ce97b32da4"><td class="mdescLeft">&#160;</td><td class="mdescRight">put a character to stdout See <a class="el" href="posix_8c.html#ab814cff71bcbcc3a72a6c399e5084573" title="Device open functions. ">fdevopen()</a> sets stream-&gt;put get for TTY devices  <a href="#ac9195b3de02e450cfdeea1ce97b32da4">More...</a><br /></td></tr>
<tr class="separator:ac9195b3de02e450cfdeea1ce97b32da4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af979e8f6598be71d68be7cc49a41626b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#af979e8f6598be71d68be7cc49a41626b">ungetc</a> (int c, <a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *stream)</td></tr>
<tr class="memdesc:af979e8f6598be71d68be7cc49a41626b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Un-Get byte from a TTY device or FatFs file stream.  <a href="#af979e8f6598be71d68be7cc49a41626b">More...</a><br /></td></tr>
<tr class="separator:af979e8f6598be71d68be7cc49a41626b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae59fd612372df957f59fb3cdcbd8b9e9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#ae59fd612372df957f59fb3cdcbd8b9e9">putc</a> (int c, <a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *stream)</td></tr>
<tr class="memdesc:ae59fd612372df957f59fb3cdcbd8b9e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Put a character to a stream See <a class="el" href="posix_8c.html#ab814cff71bcbcc3a72a6c399e5084573" title="Device open functions. ">fdevopen()</a> sets stream-&gt;put get for TTY devices.  <a href="#ae59fd612372df957f59fb3cdcbd8b9e9">More...</a><br /></td></tr>
<tr class="separator:ae59fd612372df957f59fb3cdcbd8b9e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3759827e157badd49d076bd157f508d9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a3759827e157badd49d076bd157f508d9">fgets</a> (char *str, int size, <a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *stream)</td></tr>
<tr class="memdesc:a3759827e157badd49d076bd157f508d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">get a string from stdin See <a class="el" href="posix_8c.html#ab814cff71bcbcc3a72a6c399e5084573" title="Device open functions. ">fdevopen()</a> sets stream-&gt;put get for TTY devices  <a href="#a3759827e157badd49d076bd157f508d9">More...</a><br /></td></tr>
<tr class="separator:a3759827e157badd49d076bd157f508d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30a4070a8b1719d53cb01dd4b2a65069"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a30a4070a8b1719d53cb01dd4b2a65069">fputs</a> (const char *str, <a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *stream)</td></tr>
<tr class="memdesc:a30a4070a8b1719d53cb01dd4b2a65069"><td class="mdescLeft">&#160;</td><td class="mdescRight">put a string to stdout See <a class="el" href="posix_8c.html#ab814cff71bcbcc3a72a6c399e5084573" title="Device open functions. ">fdevopen()</a> sets stream-&gt;put get for TTY devices  <a href="#a30a4070a8b1719d53cb01dd4b2a65069">More...</a><br /></td></tr>
<tr class="separator:a30a4070a8b1719d53cb01dd4b2a65069"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa360dd5203b246757abc21253ed8eb2e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#aa360dd5203b246757abc21253ed8eb2e">puts</a> (const char *str)</td></tr>
<tr class="memdesc:aa360dd5203b246757abc21253ed8eb2e"><td class="mdescLeft">&#160;</td><td class="mdescRight">put a string to stdout See <a class="el" href="posix_8c.html#ab814cff71bcbcc3a72a6c399e5084573" title="Device open functions. ">fdevopen()</a> sets stream-&gt;put get for TTY devices  <a href="#aa360dd5203b246757abc21253ed8eb2e">More...</a><br /></td></tr>
<tr class="separator:aa360dd5203b246757abc21253ed8eb2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af98213e7457dbe734d81d34758d2b505"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#af98213e7457dbe734d81d34758d2b505">feof</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *stream)</td></tr>
<tr class="memdesc:af98213e7457dbe734d81d34758d2b505"><td class="mdescLeft">&#160;</td><td class="mdescRight">feof reports if the stream is at EOF  <a href="#af98213e7457dbe734d81d34758d2b505">More...</a><br /></td></tr>
<tr class="separator:af98213e7457dbe734d81d34758d2b505"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb9e5741c01183dfe3179d646b264e5b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#acb9e5741c01183dfe3179d646b264e5b">fgetpos</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *stream, <a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a> *pos)</td></tr>
<tr class="memdesc:acb9e5741c01183dfe3179d646b264e5b"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX get position of file stream.  <a href="#acb9e5741c01183dfe3179d646b264e5b">More...</a><br /></td></tr>
<tr class="separator:acb9e5741c01183dfe3179d646b264e5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad31144743f0014784193221563ca8dd2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#ad31144743f0014784193221563ca8dd2">fseek</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *stream, long offset, int whence)</td></tr>
<tr class="memdesc:ad31144743f0014784193221563ca8dd2"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX seek to file possition.  <a href="#ad31144743f0014784193221563ca8dd2">More...</a><br /></td></tr>
<tr class="separator:ad31144743f0014784193221563ca8dd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8705d74fe77c1b23824074ecd14be1c7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a8705d74fe77c1b23824074ecd14be1c7">fsetpos</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *stream, <a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a> *pos)</td></tr>
<tr class="memdesc:a8705d74fe77c1b23824074ecd14be1c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX set position of file stream.  <a href="#a8705d74fe77c1b23824074ecd14be1c7">More...</a><br /></td></tr>
<tr class="separator:a8705d74fe77c1b23824074ecd14be1c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af53dca187c78408fe2f1958c4eb88603"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#af53dca187c78408fe2f1958c4eb88603">ftell</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *stream)</td></tr>
<tr class="memdesc:af53dca187c78408fe2f1958c4eb88603"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX file position of open stream.  <a href="#af53dca187c78408fe2f1958c4eb88603">More...</a><br /></td></tr>
<tr class="separator:af53dca187c78408fe2f1958c4eb88603"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb875e56516d235a6aaf69951444cc63"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="posix_8h.html#aac46e03c2018bada012333c31f41df12">off_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#abb875e56516d235a6aaf69951444cc63">lseek</a> (int <a class="el" href="posix_8h.html#aceb657a1b3c10d576aed287714bfd5d1">fileno</a>, <a class="el" href="posix_8h.html#aac46e03c2018bada012333c31f41df12">off_t</a> position, int whence)</td></tr>
<tr class="memdesc:abb875e56516d235a6aaf69951444cc63"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX seek to file position.  <a href="#abb875e56516d235a6aaf69951444cc63">More...</a><br /></td></tr>
<tr class="separator:abb875e56516d235a6aaf69951444cc63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35e6a58f44d4651951ecfeb97f369884"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a35e6a58f44d4651951ecfeb97f369884">rewind</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *stream)</td></tr>
<tr class="memdesc:a35e6a58f44d4651951ecfeb97f369884"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX rewind file to the beginning.  <a href="#a35e6a58f44d4651951ecfeb97f369884">More...</a><br /></td></tr>
<tr class="separator:a35e6a58f44d4651951ecfeb97f369884"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48dc1df1627501d3faed4bf1f9801759"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a48dc1df1627501d3faed4bf1f9801759">close</a> (int <a class="el" href="posix_8h.html#aceb657a1b3c10d576aed287714bfd5d1">fileno</a>)</td></tr>
<tr class="memdesc:a48dc1df1627501d3faed4bf1f9801759"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX Close a file with fileno handel.  <a href="#a48dc1df1627501d3faed4bf1f9801759">More...</a><br /></td></tr>
<tr class="separator:a48dc1df1627501d3faed4bf1f9801759"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aceb657a1b3c10d576aed287714bfd5d1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#aceb657a1b3c10d576aed287714bfd5d1">fileno</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *stream)</td></tr>
<tr class="memdesc:aceb657a1b3c10d576aed287714bfd5d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert POSIX stream pointer to POSIX fileno (index of __iob[])  <a href="#aceb657a1b3c10d576aed287714bfd5d1">More...</a><br /></td></tr>
<tr class="separator:aceb657a1b3c10d576aed287714bfd5d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c01fe0e0aa550b2a8b4dcc326983b57"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a2c01fe0e0aa550b2a8b4dcc326983b57">fileno_to_stream</a> (int <a class="el" href="posix_8h.html#aceb657a1b3c10d576aed287714bfd5d1">fileno</a>)</td></tr>
<tr class="memdesc:a2c01fe0e0aa550b2a8b4dcc326983b57"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert POSIX fileno to POSIX FILE stream pointer. NOT POSIX.  <a href="#a2c01fe0e0aa550b2a8b4dcc326983b57">More...</a><br /></td></tr>
<tr class="separator:a2c01fe0e0aa550b2a8b4dcc326983b57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e661c338f41695d1a1e70aed6255e2d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a8e661c338f41695d1a1e70aed6255e2d">fopen</a> (const char *path, const char *mode)</td></tr>
<tr class="memdesc:a8e661c338f41695d1a1e70aed6255e2d"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX Open a file with path name and ascii file mode string.  <a href="#a8e661c338f41695d1a1e70aed6255e2d">More...</a><br /></td></tr>
<tr class="separator:a8e661c338f41695d1a1e70aed6255e2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01233ac8fd574e20b0b38472adbee551"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a01233ac8fd574e20b0b38472adbee551">fread</a> (void *ptr, <a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a> size, <a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a> nmemb, <a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *stream)</td></tr>
<tr class="memdesc:a01233ac8fd574e20b0b38472adbee551"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX read nmemb elements from buf, size bytes each, to the stream fd.  <a href="#a01233ac8fd574e20b0b38472adbee551">More...</a><br /></td></tr>
<tr class="separator:a01233ac8fd574e20b0b38472adbee551"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a474e4e6cac62ef12c66b8a597c14e5f6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a474e4e6cac62ef12c66b8a597c14e5f6">ftruncate</a> (int fd, <a class="el" href="posix_8h.html#aac46e03c2018bada012333c31f41df12">off_t</a> length)</td></tr>
<tr class="memdesc:a474e4e6cac62ef12c66b8a597c14e5f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX truncate open file to length.  <a href="#a474e4e6cac62ef12c66b8a597c14e5f6">More...</a><br /></td></tr>
<tr class="separator:a474e4e6cac62ef12c66b8a597c14e5f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a148630cbecc0822d9395f002691ffe75"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a148630cbecc0822d9395f002691ffe75">fwrite</a> (const void *ptr, <a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a> size, <a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a> nmemb, <a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *stream)</td></tr>
<tr class="memdesc:a148630cbecc0822d9395f002691ffe75"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX write nmemb elements from buf, size bytes each, to the stream fd.  <a href="#a148630cbecc0822d9395f002691ffe75">More...</a><br /></td></tr>
<tr class="separator:a148630cbecc0822d9395f002691ffe75"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e5e6f96d36b5cdacfaf6b3976cd5af2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a3e5e6f96d36b5cdacfaf6b3976cd5af2">open</a> (const char *pathname, int flags)</td></tr>
<tr class="memdesc:a3e5e6f96d36b5cdacfaf6b3976cd5af2"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX Open a file with integer mode flags.  <a href="#a3e5e6f96d36b5cdacfaf6b3976cd5af2">More...</a><br /></td></tr>
<tr class="separator:a3e5e6f96d36b5cdacfaf6b3976cd5af2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af104a2c05bef787e54c6925616e867df"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="posix_8h.html#a170745d0d946e79c4c2a056d1d158996">ssize_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#af104a2c05bef787e54c6925616e867df">read</a> (int fd, const void *buf, <a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a> count)</td></tr>
<tr class="memdesc:af104a2c05bef787e54c6925616e867df"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX read count bytes from *buf to fileno fd.  <a href="#af104a2c05bef787e54c6925616e867df">More...</a><br /></td></tr>
<tr class="separator:af104a2c05bef787e54c6925616e867df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f7f00d4ec0d99440762b0a664aebf70"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a8f7f00d4ec0d99440762b0a664aebf70">sync</a> (void)</td></tr>
<tr class="memdesc:a8f7f00d4ec0d99440762b0a664aebf70"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX Sync all pending file changes and metadata on ALL files.  <a href="#a8f7f00d4ec0d99440762b0a664aebf70">More...</a><br /></td></tr>
<tr class="separator:a8f7f00d4ec0d99440762b0a664aebf70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a521c33bdb3606c9f3546b9cbcd37b9ac"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a521c33bdb3606c9f3546b9cbcd37b9ac">syncfs</a> (int fd)</td></tr>
<tr class="memdesc:a521c33bdb3606c9f3546b9cbcd37b9ac"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX Sync pending file changes and metadata for specified fileno.  <a href="#a521c33bdb3606c9f3546b9cbcd37b9ac">More...</a><br /></td></tr>
<tr class="separator:a521c33bdb3606c9f3546b9cbcd37b9ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73a95c4a93875be906e573c00b30c5ea"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a73a95c4a93875be906e573c00b30c5ea">truncate</a> (const char *path, <a class="el" href="posix_8h.html#aac46e03c2018bada012333c31f41df12">off_t</a> length)</td></tr>
<tr class="memdesc:a73a95c4a93875be906e573c00b30c5ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX truncate named file to length.  <a href="#a73a95c4a93875be906e573c00b30c5ea">More...</a><br /></td></tr>
<tr class="separator:a73a95c4a93875be906e573c00b30c5ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a072435300ac99e8d7c3749f45166e797"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="posix_8h.html#a170745d0d946e79c4c2a056d1d158996">ssize_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a072435300ac99e8d7c3749f45166e797">write</a> (int fd, const void *buf, <a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a> count)</td></tr>
<tr class="memdesc:a072435300ac99e8d7c3749f45166e797"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX Write count bytes from *buf to fileno fd.  <a href="#a072435300ac99e8d7c3749f45166e797">More...</a><br /></td></tr>
<tr class="separator:a072435300ac99e8d7c3749f45166e797"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6fd240fec1d65213f34b6e6465a8033"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#ad6fd240fec1d65213f34b6e6465a8033">fclose</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *stream)</td></tr>
<tr class="memdesc:ad6fd240fec1d65213f34b6e6465a8033"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX close a file stream.  <a href="#ad6fd240fec1d65213f34b6e6465a8033">More...</a><br /></td></tr>
<tr class="separator:ad6fd240fec1d65213f34b6e6465a8033"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a111f2e6e6bc9f0a46210a323cab093c7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a111f2e6e6bc9f0a46210a323cab093c7">dump_stat</a> (struct <a class="el" href="structstat.html">stat</a> *sp)</td></tr>
<tr class="memdesc:a111f2e6e6bc9f0a46210a323cab093c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Display struct stat, from POSIX stat(0 or fstat(), in ASCII. NOT POSIX.  <a href="#a111f2e6e6bc9f0a46210a323cab093c7">More...</a><br /></td></tr>
<tr class="separator:a111f2e6e6bc9f0a46210a323cab093c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39eea0b104438afa9ca0500c2e8d6887"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a39eea0b104438afa9ca0500c2e8d6887">mctime</a> (<a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> timev)</td></tr>
<tr class="memdesc:a39eea0b104438afa9ca0500c2e8d6887"><td class="mdescLeft">&#160;</td><td class="mdescRight">Display Ascii formatted time from timev seconds NOT POSIX.  <a href="#a39eea0b104438afa9ca0500c2e8d6887">More...</a><br /></td></tr>
<tr class="separator:a39eea0b104438afa9ca0500c2e8d6887"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abef70bf7a4af8a1f4998db0035c51781"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#abef70bf7a4af8a1f4998db0035c51781">stat</a> (char *name, struct <a class="el" href="structstat.html">stat</a> *buf)</td></tr>
<tr class="memdesc:abef70bf7a4af8a1f4998db0035c51781"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX stat - get file status of named file.  <a href="#abef70bf7a4af8a1f4998db0035c51781">More...</a><br /></td></tr>
<tr class="separator:abef70bf7a4af8a1f4998db0035c51781"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d3dfaf2f5a63e2e4eaa128477a9b5e7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a4d3dfaf2f5a63e2e4eaa128477a9b5e7">basename</a> (char *str)</td></tr>
<tr class="memdesc:a4d3dfaf2f5a63e2e4eaa128477a9b5e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX Basename of filename.  <a href="#a4d3dfaf2f5a63e2e4eaa128477a9b5e7">More...</a><br /></td></tr>
<tr class="separator:a4d3dfaf2f5a63e2e4eaa128477a9b5e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b33c90b99d00a8bd2595f254d1409e1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a0b33c90b99d00a8bd2595f254d1409e1">baseext</a> (char *str)</td></tr>
<tr class="memdesc:a0b33c90b99d00a8bd2595f254d1409e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">File extention of a file name. NOT POSIX.  <a href="#a0b33c90b99d00a8bd2595f254d1409e1">More...</a><br /></td></tr>
<tr class="separator:a0b33c90b99d00a8bd2595f254d1409e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c74403d1a11692bcab2c9ab7de4b0d3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a9c74403d1a11692bcab2c9ab7de4b0d3">chdir</a> (const char *pathname)</td></tr>
<tr class="memdesc:a9c74403d1a11692bcab2c9ab7de4b0d3"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX change directory.  <a href="#a9c74403d1a11692bcab2c9ab7de4b0d3">More...</a><br /></td></tr>
<tr class="separator:a9c74403d1a11692bcab2c9ab7de4b0d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43b14410cd7b1b67c7834ad2d6a193ce"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a43b14410cd7b1b67c7834ad2d6a193ce">chmod</a> (const char *pathname, <a class="el" href="posix_8h.html#af8f4385bb42836d1e3ad4fea9d71d1b9">mode_t</a> mode)</td></tr>
<tr class="memdesc:a43b14410cd7b1b67c7834ad2d6a193ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX chmod function - change file access permission Unfortunately file f_open modes and f_chmod modes are not the same Files that are open have way more options - but only while the file is open.  <a href="#a43b14410cd7b1b67c7834ad2d6a193ce">More...</a><br /></td></tr>
<tr class="separator:a43b14410cd7b1b67c7834ad2d6a193ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26a07a3db060ffc5659fe03495a29a1c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a26a07a3db060ffc5659fe03495a29a1c">dirname</a> (char *str)</td></tr>
<tr class="memdesc:a26a07a3db060ffc5659fe03495a29a1c"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX directory name of a filename. Return the index of the last '/' character.  <a href="#a26a07a3db060ffc5659fe03495a29a1c">More...</a><br /></td></tr>
<tr class="separator:a26a07a3db060ffc5659fe03495a29a1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a732642e09075838bbbca28b3529f13db"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a732642e09075838bbbca28b3529f13db">utime</a> (const char *filename, const struct <a class="el" href="structutimbuf.html">utimbuf</a> *times)</td></tr>
<tr class="memdesc:a732642e09075838bbbca28b3529f13db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Modification and Access time of a file.  <a href="#a732642e09075838bbbca28b3529f13db">More...</a><br /></td></tr>
<tr class="separator:a732642e09075838bbbca28b3529f13db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6411298bb01166960f5a0378ac0fdb82"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a6411298bb01166960f5a0378ac0fdb82">getcwd</a> (char *pathname, int len)</td></tr>
<tr class="memdesc:a6411298bb01166960f5a0378ac0fdb82"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX get current working directory.  <a href="#a6411298bb01166960f5a0378ac0fdb82">More...</a><br /></td></tr>
<tr class="separator:a6411298bb01166960f5a0378ac0fdb82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b57a7ee1ba139c636477cf2998e8b1e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a8b57a7ee1ba139c636477cf2998e8b1e">mkdir</a> (const char *pathname, <a class="el" href="posix_8h.html#af8f4385bb42836d1e3ad4fea9d71d1b9">mode_t</a> mode)</td></tr>
<tr class="memdesc:a8b57a7ee1ba139c636477cf2998e8b1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX make a directory.  <a href="#a8b57a7ee1ba139c636477cf2998e8b1e">More...</a><br /></td></tr>
<tr class="separator:a8b57a7ee1ba139c636477cf2998e8b1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada8cc8f9394cf54db8f338838a9fa7ce"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#ada8cc8f9394cf54db8f338838a9fa7ce">rename</a> (const char *oldpath, const char *newpath)</td></tr>
<tr class="memdesc:ada8cc8f9394cf54db8f338838a9fa7ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX rename a file by name.  <a href="#ada8cc8f9394cf54db8f338838a9fa7ce">More...</a><br /></td></tr>
<tr class="separator:ada8cc8f9394cf54db8f338838a9fa7ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6080dee579486f132062435577b77d10"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a6080dee579486f132062435577b77d10">rmdir</a> (const char *pathname)</td></tr>
<tr class="memdesc:a6080dee579486f132062435577b77d10"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX delete a directory.  <a href="#a6080dee579486f132062435577b77d10">More...</a><br /></td></tr>
<tr class="separator:a6080dee579486f132062435577b77d10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa964d662c19b2021d9cfd0c71bc686bd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#aa964d662c19b2021d9cfd0c71bc686bd">unlink</a> (const char *pathname)</td></tr>
<tr class="memdesc:aa964d662c19b2021d9cfd0c71bc686bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX delete a file.  <a href="#aa964d662c19b2021d9cfd0c71bc686bd">More...</a><br /></td></tr>
<tr class="separator:aa964d662c19b2021d9cfd0c71bc686bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaeac2b41e8c2c3a5f91c9bd511a8c0a6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#aaeac2b41e8c2c3a5f91c9bd511a8c0a6">closedir</a> (<a class="el" href="structDIR.html">DIR</a> *dirp)</td></tr>
<tr class="memdesc:aaeac2b41e8c2c3a5f91c9bd511a8c0a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX closedir.  <a href="#aaeac2b41e8c2c3a5f91c9bd511a8c0a6">More...</a><br /></td></tr>
<tr class="separator:aaeac2b41e8c2c3a5f91c9bd511a8c0a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19051b9081dfef221d9bf4583e935031"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structDIR.html">DIR</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a19051b9081dfef221d9bf4583e935031">opendir</a> (const char *pathdir)</td></tr>
<tr class="separator:a19051b9081dfef221d9bf4583e935031"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58257faf8b13b3f14558613c632b2373"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structdirent.html">dirent</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a58257faf8b13b3f14558613c632b2373">readdir</a> (<a class="el" href="structDIR.html">DIR</a> *dirp)</td></tr>
<tr class="separator:a58257faf8b13b3f14558613c632b2373"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03baa4d851a2a855656081a4b7c8d72c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a03baa4d851a2a855656081a4b7c8d72c">clrerror</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *stream)</td></tr>
<tr class="memdesc:a03baa4d851a2a855656081a4b7c8d72c"><td class="mdescLeft">&#160;</td><td class="mdescRight">clrerror resets stream EOF and error flags  <a href="#a03baa4d851a2a855656081a4b7c8d72c">More...</a><br /></td></tr>
<tr class="separator:a03baa4d851a2a855656081a4b7c8d72c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac37bff9f639fa95401b71839bbabd9a0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#ac37bff9f639fa95401b71839bbabd9a0">ferror</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *stream)</td></tr>
<tr class="memdesc:ac37bff9f639fa95401b71839bbabd9a0"><td class="mdescLeft">&#160;</td><td class="mdescRight">ferror reports if the stream has an error flag set  <a href="#ac37bff9f639fa95401b71839bbabd9a0">More...</a><br /></td></tr>
<tr class="separator:ac37bff9f639fa95401b71839bbabd9a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ce26afbb10890d31c53a8ff76d992e3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a4ce26afbb10890d31c53a8ff76d992e3">perror</a> (const char *s)</td></tr>
<tr class="memdesc:a4ce26afbb10890d31c53a8ff76d992e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX <a class="el" href="posix_8c.html#a4ce26afbb10890d31c53a8ff76d992e3" title="POSIX perror() - convert POSIX errno to text with user message. ">perror()</a> - convert POSIX errno to text with user message.  <a href="#a4ce26afbb10890d31c53a8ff76d992e3">More...</a><br /></td></tr>
<tr class="separator:a4ce26afbb10890d31c53a8ff76d992e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae03e9f4fe4bf5e64a70fd186d532a5c8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char <a class="el" href="mmc__hal_8h.html#a399da2caab82ec1bb3d5a8fbc5306768">WEAK_ATR</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#ae03e9f4fe4bf5e64a70fd186d532a5c8">strerror</a> (int errnum)</td></tr>
<tr class="memdesc:ae03e9f4fe4bf5e64a70fd186d532a5c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX <a class="el" href="posix_8c.html#ae03e9f4fe4bf5e64a70fd186d532a5c8" title="POSIX strerror() - convert POSIX errno to text with user message. ">strerror()</a> - convert POSIX errno to text with user message.  <a href="#ae03e9f4fe4bf5e64a70fd186d532a5c8">More...</a><br /></td></tr>
<tr class="separator:ae03e9f4fe4bf5e64a70fd186d532a5c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6311c6b29216455ec9b716b9eb31c799"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a6311c6b29216455ec9b716b9eb31c799">strerror_r</a> (int errnum, char *buf, <a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a> buflen)</td></tr>
<tr class="memdesc:a6311c6b29216455ec9b716b9eb31c799"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX <a class="el" href="posix_8c.html#a6311c6b29216455ec9b716b9eb31c799" title="POSIX strerror_r() - convert POSIX errno to text with user message. ">strerror_r()</a> - convert POSIX errno to text with user message.  <a href="#a6311c6b29216455ec9b716b9eb31c799">More...</a><br /></td></tr>
<tr class="separator:a6311c6b29216455ec9b716b9eb31c799"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab814cff71bcbcc3a72a6c399e5084573"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#ab814cff71bcbcc3a72a6c399e5084573">fdevopen</a> (int(*put)(char, <a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *), int(*get)(<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *))</td></tr>
<tr class="memdesc:ab814cff71bcbcc3a72a6c399e5084573"><td class="mdescLeft">&#160;</td><td class="mdescRight">Device open functions.  <a href="#ab814cff71bcbcc3a72a6c399e5084573">More...</a><br /></td></tr>
<tr class="separator:ab814cff71bcbcc3a72a6c399e5084573"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1efac33e58ea2abd4cad808e05eb6dd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#aa1efac33e58ea2abd4cad808e05eb6dd">mkfs</a> (char *name)</td></tr>
<tr class="memdesc:aa1efac33e58ea2abd4cad808e05eb6dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Formt SD card.  <a href="#aa1efac33e58ea2abd4cad808e05eb6dd">More...</a><br /></td></tr>
<tr class="separator:aa1efac33e58ea2abd4cad808e05eb6dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5811041feb43c22c6e609a8875475abc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a5811041feb43c22c6e609a8875475abc">fatfs_getc</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *stream)</td></tr>
<tr class="memdesc:a5811041feb43c22c6e609a8875475abc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Private FatFs function called by <a class="el" href="posix_8c.html#a1d2fa24415329171e6765ed5309b6edd" title="Get byte from a TTY device or FatFs file stream open() or fopen() sets stream-&gt;get = fatfs_getc() for...">fgetc()</a> to get a byte from file stream FIXME buffer this function call NOT POSIX <a class="el" href="posix_8c.html#a3e5e6f96d36b5cdacfaf6b3976cd5af2" title="POSIX Open a file with integer mode flags. ">open()</a> assigns stream-&gt;get = <a class="el" href="posix_8c.html#a5811041feb43c22c6e609a8875475abc" title="Private FatFs function called by fgetc() to get a byte from file stream FIXME buffer this function ca...">fatfs_getc()</a>  <a href="#a5811041feb43c22c6e609a8875475abc">More...</a><br /></td></tr>
<tr class="separator:a5811041feb43c22c6e609a8875475abc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfd015ed8dbac3473269d1a068bf5904"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#adfd015ed8dbac3473269d1a068bf5904">fatfs_putc</a> (char c, <a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *stream)</td></tr>
<tr class="memdesc:adfd015ed8dbac3473269d1a068bf5904"><td class="mdescLeft">&#160;</td><td class="mdescRight">Private FatFs function called by <a class="el" href="posix_8c.html#a6bdef0a37397953c3b0f14c4d5d0eb10" title="Put a byte to TTY device or FatFs file stream open() or fopen() sets stream-&gt;put = fatfs_outc() for F...">fputc()</a> to put a byte from file stream NOT POSIX <a class="el" href="posix_8c.html#a3e5e6f96d36b5cdacfaf6b3976cd5af2" title="POSIX Open a file with integer mode flags. ">open()</a> assigns stream-&gt;put = <a class="el" href="posix_8c.html#adfd015ed8dbac3473269d1a068bf5904" title="Private FatFs function called by fputc() to put a byte from file stream NOT POSIX open() assigns stre...">fatfs_putc()</a>  <a href="#adfd015ed8dbac3473269d1a068bf5904">More...</a><br /></td></tr>
<tr class="separator:adfd015ed8dbac3473269d1a068bf5904"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac20f0fc565c27bbbb900bde3337b09b9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#ac20f0fc565c27bbbb900bde3337b09b9">fatfs_to_errno</a> (<a class="el" href="ff_8h.html#a49d0171ecbd362cda5680a0d360db44c">FRESULT</a> Result)</td></tr>
<tr class="memdesc:ac20f0fc565c27bbbb900bde3337b09b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert FafFs error result to POSIX errno. NOT POSIX.  <a href="#ac20f0fc565c27bbbb900bde3337b09b9">More...</a><br /></td></tr>
<tr class="separator:ac20f0fc565c27bbbb900bde3337b09b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81f14429660ca6a685676d6ceaf5350c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a81f14429660ca6a685676d6ceaf5350c">fatfs_to_fileno</a> (<a class="el" href="structFIL.html">FIL</a> *fh)</td></tr>
<tr class="memdesc:a81f14429660ca6a685676d6ceaf5350c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert FatFS file handle to POSIX fileno. NOT POSIX.  <a href="#a81f14429660ca6a685676d6ceaf5350c">More...</a><br /></td></tr>
<tr class="separator:a81f14429660ca6a685676d6ceaf5350c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a178d5d21b21c0f60d6ff8dfbbc0d86f5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a178d5d21b21c0f60d6ff8dfbbc0d86f5">fat_time_to_unix</a> (<a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> date, <a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> <a class="el" href="time_8h.html#a32b1cbd925752f0cd61d202bbe204a69">time</a>)</td></tr>
<tr class="memdesc:a178d5d21b21c0f60d6ff8dfbbc0d86f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert FatFs file date and time to POSIX epoch seconds. NOT POSIX.  <a href="#a178d5d21b21c0f60d6ff8dfbbc0d86f5">More...</a><br /></td></tr>
<tr class="separator:a178d5d21b21c0f60d6ff8dfbbc0d86f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5666c514336f78c6d1ab6bc35c74ae0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#aa5666c514336f78c6d1ab6bc35c74ae0">unix_time_to_fat</a> (<a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> epoch, <a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *date, <a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *<a class="el" href="time_8h.html#a32b1cbd925752f0cd61d202bbe204a69">time</a>)</td></tr>
<tr class="memdesc:aa5666c514336f78c6d1ab6bc35c74ae0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert Linux POSIX time_t to FAT32 date and time. NOT POSIX.  <a href="#aa5666c514336f78c6d1ab6bc35c74ae0">More...</a><br /></td></tr>
<tr class="separator:aa5666c514336f78c6d1ab6bc35c74ae0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b859123258b36eb57f4f71d2606d8a5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="structFIL.html">FIL</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a9b859123258b36eb57f4f71d2606d8a5">fileno_to_fatfs</a> (int <a class="el" href="posix_8h.html#aceb657a1b3c10d576aed287714bfd5d1">fileno</a>)</td></tr>
<tr class="memdesc:a9b859123258b36eb57f4f71d2606d8a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert POSIX fileno to FatFS handle NOT POSIX.  <a href="#a9b859123258b36eb57f4f71d2606d8a5">More...</a><br /></td></tr>
<tr class="separator:a9b859123258b36eb57f4f71d2606d8a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38496612f759733234128893e4c60a89"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a38496612f759733234128893e4c60a89">free_file_descriptor</a> (int <a class="el" href="posix_8h.html#aceb657a1b3c10d576aed287714bfd5d1">fileno</a>)</td></tr>
<tr class="memdesc:a38496612f759733234128893e4c60a89"><td class="mdescLeft">&#160;</td><td class="mdescRight">Free POSIX fileno FILE descriptor. NOT POSIX.  <a href="#a38496612f759733234128893e4c60a89">More...</a><br /></td></tr>
<tr class="separator:a38496612f759733234128893e4c60a89"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abab788c42cce343cde2f5b8f90015229"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#abab788c42cce343cde2f5b8f90015229">new_file_descriptor</a> (void)</td></tr>
<tr class="memdesc:abab788c42cce343cde2f5b8f90015229"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocate a POSIX FILE descriptor. NOT POSIX.  <a href="#abab788c42cce343cde2f5b8f90015229">More...</a><br /></td></tr>
<tr class="separator:abab788c42cce343cde2f5b8f90015229"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a607feb06d296e0ff60d5a19538bd17fc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a607feb06d296e0ff60d5a19538bd17fc">posix_fopen_modes_to_open</a> (const char *mode)</td></tr>
<tr class="memdesc:a607feb06d296e0ff60d5a19538bd17fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert POSIX fopen mode to POSIX open mode flags. NOT POSIX.  <a href="#a607feb06d296e0ff60d5a19538bd17fc">More...</a><br /></td></tr>
<tr class="separator:a607feb06d296e0ff60d5a19538bd17fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91ade11061b9b43b1edd37ff32f76591"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#a91ade11061b9b43b1edd37ff32f76591">fprintf</a> (<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *fp, const char *format,...)</td></tr>
<tr class="memdesc:a91ade11061b9b43b1edd37ff32f76591"><td class="mdescLeft">&#160;</td><td class="mdescRight">fprintf function Example user defined printf function using fputc for I/O This method allows I/O to devices and strings without typical C++ overhead  <a href="#a91ade11061b9b43b1edd37ff32f76591">More...</a><br /></td></tr>
<tr class="separator:a91ade11061b9b43b1edd37ff32f76591"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:aae2f027325f7e73c3aa5e7dc990bd90d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="posix_8h.html#aae2f027325f7e73c3aa5e7dc990bd90d">__iob</a> [<a class="el" href="posix_8h.html#a2c5eecb22513a88c24ae5831a3265e54">MAX_FILES</a>]</td></tr>
<tr class="memdesc:aae2f027325f7e73c3aa5e7dc990bd90d"><td class="mdescLeft">&#160;</td><td class="mdescRight">POSIX fileno to POSIX FILE stream table.  <a href="#aae2f027325f7e73c3aa5e7dc990bd90d">More...</a><br /></td></tr>
<tr class="separator:aae2f027325f7e73c3aa5e7dc990bd90d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>POSIX wrapper for FatFS. </p>
<dl class="section user"><dt>Copyright &copy; 2014-2017 Mike Gore, All rights reserved. GPL License</dt><dd></dd></dl>
<dl class="section see"><dt>See also</dt><dd><a href="http://github.com/magore/hp85disk">http://github.com/magore/hp85disk</a> </dd>
<dd>
<a href="http://github.com/magore/hp85disk/COPYRIGHT.md">http://github.com/magore/hp85disk/COPYRIGHT.md</a> for specific Copyright details</dd></dl>
<dl class="section user"><dt>You are free to use this code under the terms of GPL</dt><dd>please retain a copy of this notice in any code you use it in.</dd></dl>
<p>This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p>
<p>This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</p>
<p>You should have received a copy of the GNU General Public License along with this program. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. </p>

<p>Definition in file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a63f42c2888ed9bd0f00ee25002ee3b02"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __SEOF&#160;&#160;&#160;0x0020      /* found EOF */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00165">165</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01786">clrerror()</a>, <a class="el" href="posix_8c_source.html#l01984">fatfs_getc()</a>, <a class="el" href="posix_8c_source.html#l02074">fatfs_putc()</a>, <a class="el" href="posix_8c_source.html#l00505">feof()</a>, <a class="el" href="posix_8c_source.html#l00216">fgetc()</a>, and <a class="el" href="posix_8c_source.html#l00368">ungetc()</a>.</p>

</div>
</div>
<a class="anchor" id="a37117409538ffeec47002d6580e4b703"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __SERR&#160;&#160;&#160;0x0010      /* found error */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00164">164</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01786">clrerror()</a>, <a class="el" href="posix_8c_source.html#l01798">ferror()</a>, and <a class="el" href="posix_8c_source.html#l00216">fgetc()</a>.</p>

</div>
</div>
<a class="anchor" id="a910f0d9b3aff8a868393ce38fe91cc7d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __SMALLOC&#160;&#160;&#160;0x80      /* handle is malloc()ed */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00167">167</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01876">fdevopen()</a>, and <a class="el" href="posix_8c_source.html#l02311">free_file_descriptor()</a>.</p>

</div>
</div>
<a class="anchor" id="a4f8a55506b9fec8dff9442bec5a86dee"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __SPGM&#160;&#160;&#160;0x0008      /* fmt string is in progmem */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00163">163</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a9a9bfdbe4548d021af62fb947d2b6b82"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __SRD&#160;&#160;&#160;0x0001      /* OK to read */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00160">160</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01876">fdevopen()</a>, <a class="el" href="posix_8c_source.html#l00216">fgetc()</a>, and <a class="el" href="posix_8c_source.html#l00368">ungetc()</a>.</p>

</div>
</div>
<a class="anchor" id="a7934343459dfe68ced51599a7b9a316f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __SSTR&#160;&#160;&#160;0x0004      /* this is an sprintf/snprintf string */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00162">162</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00216">fgetc()</a>, and <a class="el" href="posix_8c_source.html#l00278">fputc()</a>.</p>

</div>
</div>
<a class="anchor" id="ad541703cea6b378290dcf2ea448d2879"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __SUNGET&#160;&#160;&#160;0x040      /* ungetc() happened */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00166">166</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00216">fgetc()</a>, <a class="el" href="posix_8c_source.html#l00617">lseek()</a>, <a class="el" href="posix_8c_source.html#l01006">read()</a>, <a class="el" href="posix_8c_source.html#l01096">syncfs()</a>, and <a class="el" href="posix_8c_source.html#l00368">ungetc()</a>.</p>

</div>
</div>
<a class="anchor" id="af08f227b04a8833c49ce8b798ca7f403"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __SWR&#160;&#160;&#160;0x0002      /* OK to write */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00161">161</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01876">fdevopen()</a>, and <a class="el" href="posix_8c_source.html#l00278">fputc()</a>.</p>

</div>
</div>
<a class="anchor" id="a280c47b9edff2751b8dbb9a715dc44c5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define _FDEV_EOF&#160;&#160;&#160;(-1)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>device status flags </p>

<p>Definition at line <a class="el" href="posix_8h_source.html#l00295">295</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a132917c782a0ba854c3ae9abe57c3b12"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define _FDEV_ERR&#160;&#160;&#160;(-2)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00296">296</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00216">fgetc()</a>.</p>

</div>
</div>
<a class="anchor" id="a79826a1c733e4f67843256d34ad64352"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define _FDEV_SETUP_READ&#160;&#160;&#160;<a class="el" href="posix_8h.html#a9a9bfdbe4548d021af62fb947d2b6b82">__SRD</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>fdev_setup_stream() with read intent </p>

<p>Definition at line <a class="el" href="posix_8h_source.html#l00298">298</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00895">open()</a>.</p>

</div>
</div>
<a class="anchor" id="a93db55caeeaf13488a635f8896a6bdf3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define _FDEV_SETUP_RW&#160;&#160;&#160;(<a class="el" href="posix_8h.html#a9a9bfdbe4548d021af62fb947d2b6b82">__SRD</a>|<a class="el" href="posix_8h.html#af08f227b04a8833c49ce8b798ca7f403">__SWR</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>fdev_setup_stream() with read/write intent </p>

<p>Definition at line <a class="el" href="posix_8h_source.html#l00300">300</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00895">open()</a>.</p>

</div>
</div>
<a class="anchor" id="a822a791a1c06a12b95c14ace75b48ad2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define _FDEV_SETUP_WRITE&#160;&#160;&#160;<a class="el" href="posix_8h.html#af08f227b04a8833c49ce8b798ca7f403">__SWR</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>fdev_setup_stream() with write intent </p>

<p>Definition at line <a class="el" href="posix_8h_source.html#l00299">299</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00895">open()</a>.</p>

</div>
</div>
<a class="anchor" id="a59adc4c82490d23754cd39c2fb99b0da"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define EOF&#160;&#160;&#160;(-1)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>End of file or device read. </p>

<p>Definition at line <a class="el" href="posix_8h_source.html#l00248">248</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="buffer_8c_source.html#l00100">buffer_getc()</a>, <a class="el" href="buffer_8c_source.html#l00134">buffer_gets()</a>, <a class="el" href="posix_8c_source.html#l01984">fatfs_getc()</a>, <a class="el" href="posix_8c_source.html#l02074">fatfs_putc()</a>, <a class="el" href="posix_8c_source.html#l01239">fclose()</a>, <a class="el" href="posix_8c_source.html#l00216">fgetc()</a>, <a class="el" href="posix_8c_source.html#l00420">fgets()</a>, <a class="el" href="posix_8c_source.html#l00278">fputc()</a>, <a class="el" href="posix_8c_source.html#l00457">fputs()</a>, <a class="el" href="ff_8c_source.html#l05971">putc_flush()</a>, <a class="el" href="posix_8c_source.html#l00480">puts()</a>, and <a class="el" href="posix_8c_source.html#l00368">ungetc()</a>.</p>

</div>
</div>
<a class="anchor" id="ac5a6f01348af03d4c2cdd9d557880c4d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FATFS_R&#160;&#160;&#160;(<a class="el" href="posix_8h.html#a84c7dbf5cf2fdfb690f76348b60a8cb7">S_IRUSR</a> | <a class="el" href="posix_8h.html#a4f5f280b929768113739fb34d6f7be8a">S_IRGRP</a> | <a class="el" href="posix_8h.html#a071147a0cb995036967c80f64b1f74b9">S_IROTH</a>)   /*&lt; <a class="el" href="ff_8c.html#a3d7aad0939745576943767bf6c410eaf">FatFs</a> Read perms */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="structFATFS.html">FATFS</a> open modes. </p>

<p>Definition at line <a class="el" href="posix_8h_source.html#l00242">242</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01344">stat()</a>.</p>

</div>
</div>
<a class="anchor" id="a58a8434d968e434626088e2dc6ae6124"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FATFS_W&#160;&#160;&#160;(<a class="el" href="posix_8h.html#ad70001754261c15a1bdc8e876c6d09d7">S_IWUSR</a> | <a class="el" href="posix_8h.html#ae6774871a90d9442f00abe18b87fee6e">S_IWGRP</a> | <a class="el" href="posix_8h.html#a5303f49f26293acdb9533756c78322fb">S_IWOTH</a>)   /*&lt; <a class="el" href="ff_8c.html#a3d7aad0939745576943767bf6c410eaf">FatFs</a> Write perms */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00243">243</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01344">stat()</a>.</p>

</div>
</div>
<a class="anchor" id="a0a88f1032e29e7cc97a96b40cdc996a5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FATFS_X&#160;&#160;&#160;(<a class="el" href="posix_8h.html#af10a35e3950795d6ee4e07157d000131">S_IXUSR</a> | <a class="el" href="posix_8h.html#a042e69ac0e7dd56e5cfcd9e97d010323">S_IXGRP</a> | <a class="el" href="posix_8h.html#a40223db1b95a04f5b28cceb3c34cfebd">S_IXOTH</a>)   /*&lt; <a class="el" href="ff_8c.html#a3d7aad0939745576943767bf6c410eaf">FatFs</a> Execute perms */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00244">244</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01344">stat()</a>.</p>

</div>
</div>
<a class="anchor" id="ac04f5faa8e86a4ce4ae084d85386af40"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define fdev_get_udata</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">stream</td><td>)</td>
          <td>&#160;&#160;&#160;((stream)-&gt;udata)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00292">292</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01984">fatfs_getc()</a>, <a class="el" href="posix_8c_source.html#l02074">fatfs_putc()</a>, <a class="el" href="posix_8c_source.html#l02190">fatfs_to_fileno()</a>, <a class="el" href="posix_8c_source.html#l02276">fileno_to_fatfs()</a>, and <a class="el" href="posix_8c_source.html#l02311">free_file_descriptor()</a>.</p>

</div>
</div>
<a class="anchor" id="a793fcb8f10b6b8746d4186012929ddf1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define fdev_set_udata</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">stream, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">u&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;do { (stream)-&gt;udata = u; } while(0)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>device IO udata </p>

<p>Definition at line <a class="el" href="posix_8h_source.html#l00291">291</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l02355">new_file_descriptor()</a>.</p>

</div>
</div>
<a class="anchor" id="ae730c85752284268b39560df693cb207"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define lstat&#160;&#160;&#160;<a class="el" href="structstat.html">stat</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX <a class="el" href="posix_8h.html#ae730c85752284268b39560df693cb207" title="POSIX lstat() ">lstat()</a> </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="posix_8h.html#abef70bf7a4af8a1f4998db0035c51781" title="POSIX stat - get file status of named file. ">stat()</a> </dd></dl>

<p>Definition at line <a class="el" href="posix_8h_source.html#l00153">153</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a2c5eecb22513a88c24ae5831a3265e54"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MAX_FILES&#160;&#160;&#160;16</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Maximum number of POSIX file handles. </p>

<p>Definition at line <a class="el" href="posix_8h_source.html#l00260">260</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l02190">fatfs_to_fileno()</a>, <a class="el" href="posix_8c_source.html#l00724">fileno()</a>, <a class="el" href="posix_8c_source.html#l00754">fileno_to_stream()</a>, <a class="el" href="posix_8c_source.html#l02355">new_file_descriptor()</a>, and <a class="el" href="posix_8c_source.html#l01069">sync()</a>.</p>

</div>
</div>
<a class="anchor" id="afd709f201d7643c3909621f620ea648a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MAX_NAME_LEN&#160;&#160;&#160;13</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00133">133</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00517">ls()</a>.</p>

</div>
</div>
<a class="anchor" id="a28002092a0615e21c9943a426e81015f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define modecmp</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">str, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">pat&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;(<a class="el" href="stringsup_8h.html#abee00aec80e542c31b536a531ffe761a">strcmp</a>(str, pat) == 0 ? 1: 0)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>used in <a class="el" href="posix_8c.html" title="POSIX wrapper for FatFS. ">posix.c</a> to compare to ascii file modes </p>

<p>Definition at line <a class="el" href="posix_8h_source.html#l00238">238</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l02418">posix_fopen_modes_to_open()</a>.</p>

</div>
</div>
<a class="anchor" id="a4dc4d45e07d2abc899bcaf04b2846a87"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define O_ACCMODE&#160;&#160;&#160;00000003 /*&lt; <a class="el" href="posix_8h.html#af104a2c05bef787e54c6925616e867df">read</a>, <a class="el" href="posix_8h.html#a072435300ac99e8d7c3749f45166e797">write</a>, <a class="el" href="posix_8h.html#af104a2c05bef787e54c6925616e867df">read</a>-<a class="el" href="posix_8h.html#a072435300ac99e8d7c3749f45166e797">write</a> modes */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX open modes - no other combination are allowed. </p>
<ul>
<li>man page open(2)</li>
<li>Note: The POSIX correct test of O_RDONLY is: (mode &amp; O_ACCMODE) == O_RDONLY. </li>
</ul>

<p>Definition at line <a class="el" href="posix_8h_source.html#l00186">186</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00895">open()</a>.</p>

</div>
</div>
<a class="anchor" id="ae036f789407d21f07b211552d67b3214"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define O_APPEND&#160;&#160;&#160;00002000 /*&lt; All writes are to <a class="el" href="ff_8h.html#a59adc4c82490d23754cd39c2fb99b0da">EOF</a> */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00195">195</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00895">open()</a>, and <a class="el" href="posix_8c_source.html#l02418">posix_fopen_modes_to_open()</a>.</p>

</div>
</div>
<a class="anchor" id="a36fa9b2e726512bc17a7a6d3e39002be"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define O_BINARY&#160;&#160;&#160;00000004 /*&lt; Binary */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00197">197</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a1cf6b1de1fffedaa1d26b189e9a8d2cc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define O_CREAT&#160;&#160;&#160;00000100 /*&lt; Create file only if it does not exist */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00190">190</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00895">open()</a>, and <a class="el" href="posix_8c_source.html#l02418">posix_fopen_modes_to_open()</a>.</p>

</div>
</div>
<a class="anchor" id="a9f5acfe79fafe14b6694447bd0e9f10b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define O_EXCL</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">00000200 <span class="comment">/*&lt; O_CREAT option, Create fails if file exists </span></div><div class="line"><span class="comment">*/</span></div></div><!-- fragment -->
<p>Definition at line <a class="el" href="posix_8h_source.html#l00191">191</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a2e375ab32c7ef4581b026be28e4cc116"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define O_NOCTTY&#160;&#160;&#160;00000400 /*&lt; @todo */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00193">193</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a39d33ce33804efd4d52606d59071c6d8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define O_NONBLOCK&#160;&#160;&#160;00004000 /*&lt; @todo */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00196">196</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a7a68c9ffaac7dbcd652225dd7c06a54b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define O_RDONLY&#160;&#160;&#160;00000000 /*&lt; Read only */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00187">187</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00895">open()</a>, and <a class="el" href="posix_8c_source.html#l02418">posix_fopen_modes_to_open()</a>.</p>

</div>
</div>
<a class="anchor" id="abb0586253488ee61072b73557eeb873b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define O_RDWR&#160;&#160;&#160;00000002 /*&lt; Read/Write */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00189">189</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00895">open()</a>, and <a class="el" href="posix_8c_source.html#l02418">posix_fopen_modes_to_open()</a>.</p>

</div>
</div>
<a class="anchor" id="a9abb6d01b83e0bc5a6e2adeceb7dffd7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define O_TEXT&#160;&#160;&#160;00000004 /*&lt; Text End Of Line translation */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00198">198</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad1d67e453fb3031f40f8cd3403773813"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define O_TRUNC&#160;&#160;&#160;00001000 /*&lt; Truncate if exists */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00194">194</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00895">open()</a>, and <a class="el" href="posix_8c_source.html#l02418">posix_fopen_modes_to_open()</a>.</p>

</div>
</div>
<a class="anchor" id="a11b644a8526139c4cc1850dac1271ced"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define O_WRONLY&#160;&#160;&#160;00000001 /*&lt; Write only */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00188">188</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l02418">posix_fopen_modes_to_open()</a>.</p>

</div>
</div>
<a class="anchor" id="a1c3d85ae80df5590fa314acffd8bf840"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define POSIX</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00030">30</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a49a6665b56f38f52ee9b157cefcf4d68"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_IEXEC&#160;&#160;&#160;0100     /*&lt; Execute by owner.  */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00211">211</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5c5b74a1cb1a1ae83572500b94e1938f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_IFBLK&#160;&#160;&#160;0060000  /*&lt; Block device.  */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00204">204</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="aef3a1d1ba22c83e30b5c834dd343b2a8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_IFCHR&#160;&#160;&#160;0020000  /*&lt; Character device.  */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00203">203</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a11fb0652b963a735f3377eb1c9239f2d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_IFDIR&#160;&#160;&#160;0040000  /*&lt; Directory.  */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00202">202</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00517">ls()</a>, and <a class="el" href="posix_8c_source.html#l01344">stat()</a>.</p>

</div>
</div>
<a class="anchor" id="a4966f25d9f03a7a06bc47ac729fd86cf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_IFIFO&#160;&#160;&#160;0010000  /*&lt; FIFO.  */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00206">206</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="afef163ce62372757e84bd9fc88c07aad"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_IFLNK&#160;&#160;&#160;0120000  /*&lt; Symbolic link.  */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00207">207</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab5bee51e9ee68b83ab11d4b340f7200b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_IFMT&#160;&#160;&#160;0170000  /*&lt; These bits determine file type.  */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX File types, see fstat and stat. </p>

<p>Definition at line <a class="el" href="posix_8h_source.html#l00201">201</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00517">ls()</a>.</p>

</div>
</div>
<a class="anchor" id="a1aaa48b192a5dd3b6d7ee91fc98cd17d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_IFREG&#160;&#160;&#160;0100000  /*&lt; Regular file.  */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00205">205</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00517">ls()</a>, and <a class="el" href="posix_8c_source.html#l01344">stat()</a>.</p>

</div>
</div>
<a class="anchor" id="a28e80cd43106882904be148b2a397d42"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_IFSOCK&#160;&#160;&#160;0140000  /*&lt; Socket.  */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00208">208</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a96c6486aa02a821aa4199525f5e79f60"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_IREAD&#160;&#160;&#160;0400     /*&lt; Read by owner.  */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00209">209</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a4f5f280b929768113739fb34d6f7be8a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_IRGRP&#160;&#160;&#160;(<a class="el" href="posix_8h.html#a84c7dbf5cf2fdfb690f76348b60a8cb7">S_IRUSR</a> &gt;&gt; 3)              /*&lt; Read by group.  */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00226">226</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a071147a0cb995036967c80f64b1f74b9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_IROTH&#160;&#160;&#160;(<a class="el" href="posix_8h.html#a4f5f280b929768113739fb34d6f7be8a">S_IRGRP</a> &gt;&gt; 3)              /*&lt; Read by others.  */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00231">231</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a84c7dbf5cf2fdfb690f76348b60a8cb7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_IRUSR&#160;&#160;&#160;<a class="el" href="posix_8h.html#a96c6486aa02a821aa4199525f5e79f60">S_IREAD</a>                     /*&lt; Read by owner.  */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00221">221</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a230c642d2bb81f15f85c122b1883de5c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_IRWXG&#160;&#160;&#160;(<a class="el" href="posix_8h.html#afe3da42e762f6362c93454682fad5eb5">S_IRWXU</a> &gt;&gt; 3)              /*&lt; Read,Write,Execute by user */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00229">229</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5b93e0da7fe32bbd4926626bffad96b1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_IRWXO&#160;&#160;&#160;(<a class="el" href="posix_8h.html#a230c642d2bb81f15f85c122b1883de5c">S_IRWXG</a> &gt;&gt; 3)              /*&lt; Read,Write,Execute by other */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00234">234</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="afe3da42e762f6362c93454682fad5eb5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_IRWXU&#160;&#160;&#160;(<a class="el" href="posix_8h.html#a96c6486aa02a821aa4199525f5e79f60">S_IREAD</a>|<a class="el" href="posix_8h.html#a40eb4ad4bcc675d265615042657c37b7">S_IWRITE</a>|<a class="el" href="posix_8h.html#a49a6665b56f38f52ee9b157cefcf4d68">S_IEXEC</a>)  /*&lt; Read,Write,Execute by owner */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00224">224</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a8b86a24d84c3cfce39cc832a017656ba"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_ISBLK</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">mode</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="posix_8h.html#adc77a7a79522cf692b584af4b20cd256">S_ISTYPE</a>((mode), <a class="el" href="posix_8h.html#a5c5b74a1cb1a1ae83572500b94e1938f">S_IFBLK</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00217">217</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="aae33be85d242a1317f972cf2b189f03d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_ISCHR</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">mode</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="posix_8h.html#adc77a7a79522cf692b584af4b20cd256">S_ISTYPE</a>((mode), <a class="el" href="posix_8h.html#aef3a1d1ba22c83e30b5c834dd343b2a8">S_IFCHR</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00216">216</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a3746cdc5aac871e6f6504fbcbd29ef1d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_ISDIR</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">mode</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="posix_8h.html#adc77a7a79522cf692b584af4b20cd256">S_ISTYPE</a>((mode), <a class="el" href="posix_8h.html#a11fb0652b963a735f3377eb1c9239f2d">S_IFDIR</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00215">215</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01260">dump_stat()</a>, and <a class="el" href="posix__tests_8c_source.html#l00465">ls_info()</a>.</p>

</div>
</div>
<a class="anchor" id="aad0f32c2c182238f2ff71c83e6ab65a0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_ISREG</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">mode</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="posix_8h.html#adc77a7a79522cf692b584af4b20cd256">S_ISTYPE</a>((mode), <a class="el" href="posix_8h.html#a1aaa48b192a5dd3b6d7ee91fc98cd17d">S_IFREG</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00218">218</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01260">dump_stat()</a>.</p>

</div>
</div>
<a class="anchor" id="adc77a7a79522cf692b584af4b20cd256"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_ISTYPE</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">mode, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">mask&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;(((mode) &amp; <a class="el" href="posix_8h.html#ab5bee51e9ee68b83ab11d4b340f7200b">S_IFMT</a>) == (mask))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX File type test macros. </p>

<p>Definition at line <a class="el" href="posix_8h_source.html#l00214">214</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae6774871a90d9442f00abe18b87fee6e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_IWGRP&#160;&#160;&#160;(<a class="el" href="posix_8h.html#ad70001754261c15a1bdc8e876c6d09d7">S_IWUSR</a> &gt;&gt; 3)              /*&lt; Write by group.  */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00227">227</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01513">chmod()</a>.</p>

</div>
</div>
<a class="anchor" id="a5303f49f26293acdb9533756c78322fb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_IWOTH&#160;&#160;&#160;(<a class="el" href="posix_8h.html#ae6774871a90d9442f00abe18b87fee6e">S_IWGRP</a> &gt;&gt; 3)              /*&lt; Write by others.  */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00232">232</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01513">chmod()</a>.</p>

</div>
</div>
<a class="anchor" id="a40eb4ad4bcc675d265615042657c37b7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_IWRITE&#160;&#160;&#160;0200     /*&lt; Write by owner.  */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00210">210</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad70001754261c15a1bdc8e876c6d09d7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_IWUSR&#160;&#160;&#160;<a class="el" href="posix_8h.html#a40eb4ad4bcc675d265615042657c37b7">S_IWRITE</a>                    /*&lt; Write by owner.  */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00222">222</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01513">chmod()</a>.</p>

</div>
</div>
<a class="anchor" id="a042e69ac0e7dd56e5cfcd9e97d010323"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_IXGRP&#160;&#160;&#160;(<a class="el" href="posix_8h.html#af10a35e3950795d6ee4e07157d000131">S_IXUSR</a> &gt;&gt; 3)              /*&lt; Execute by group.  */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00228">228</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a40223db1b95a04f5b28cceb3c34cfebd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_IXOTH&#160;&#160;&#160;(<a class="el" href="posix_8h.html#a042e69ac0e7dd56e5cfcd9e97d010323">S_IXGRP</a> &gt;&gt; 3)              /*&lt; Execute by others.  */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00233">233</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="af10a35e3950795d6ee4e07157d000131"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define S_IXUSR&#160;&#160;&#160;<a class="el" href="posix_8h.html#a49a6665b56f38f52ee9b157cefcf4d68">S_IEXEC</a>                     /*&lt; Execute by owner.  */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00223">223</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a4c8d0b76b470ba65a43ca46a88320f39"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SEEK_CUR&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00252">252</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00617">lseek()</a>.</p>

</div>
</div>
<a class="anchor" id="ad2a2e6c114780c3071efd24f16c7f7d8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SEEK_END&#160;&#160;&#160;2</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00253">253</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00617">lseek()</a>.</p>

</div>
</div>
<a class="anchor" id="a0d112bae8fd35be772185b6ec6bcbe64"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SEEK_SET&#160;&#160;&#160;0</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Seek offset macros. </p>

<p>Definition at line <a class="el" href="posix_8h_source.html#l00251">251</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00571">fsetpos()</a>, and <a class="el" href="posix_8c_source.html#l00666">rewind()</a>.</p>

</div>
</div>
<a class="anchor" id="a5ce35bd5ba5021fd3b2e951e8f497656"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define stderr&#160;&#160;&#160;(<a class="el" href="posix_8h.html#aae2f027325f7e73c3aa5e7dc990bd90d">__iob</a>[2])</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00271">271</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l00062">db_calloc()</a>, <a class="el" href="send_8c_source.html#l00026">escape()</a>, <a class="el" href="posix_8c_source.html#l01876">fdevopen()</a>, <a class="el" href="posix_8c_source.html#l00278">fputc()</a>, <a class="el" href="cordic2c_8c_source.html#l00317">main()</a>, <a class="el" href="posix_8c_source.html#l01006">read()</a>, <a class="el" href="bdffontutil_8c_source.html#l00790">ReadBdf()</a>, <a class="el" href="send_8c_source.html#l00087">send_message()</a>, and <a class="el" href="posix_8c_source.html#l01180">write()</a>.</p>

</div>
</div>
<a class="anchor" id="aaca70138f0cb63ddb026921afc635179"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define stdin&#160;&#160;&#160;(<a class="el" href="posix_8h.html#aae2f027325f7e73c3aa5e7dc990bd90d">__iob</a>[0])</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>define stdin, stdout and stderr </p>

<p>Definition at line <a class="el" href="posix_8h_source.html#l00269">269</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01876">fdevopen()</a>, <a class="el" href="posix_8c_source.html#l00336">getchar()</a>, <a class="el" href="posix_8c_source.html#l01006">read()</a>, <a class="el" href="time_8c_source.html#l00901">setdate()</a>, <a class="el" href="posix__tests_8c_source.html#l00661">upload()</a>, <a class="el" href="user__main_8c_source.html#l00274">user_tasks()</a>, and <a class="el" href="posix_8c_source.html#l01180">write()</a>.</p>

</div>
</div>
<a class="anchor" id="a0c0ef221f95f64e8632451312fd18cc8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define stdout&#160;&#160;&#160;(<a class="el" href="posix_8h.html#aae2f027325f7e73c3aa5e7dc990bd90d">__iob</a>[1])</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00270">270</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

<p>Referenced by <a class="el" href="fatfs__tests_8c_source.html#l00313">fatfs_ls()</a>, <a class="el" href="posix_8c_source.html#l01876">fdevopen()</a>, <a class="el" href="posix_8c_source.html#l00278">fputc()</a>, <a class="el" href="bdffont2c_8c_source.html#l00091">main()</a>, <a class="el" href="posix_8c_source.html#l00351">putchar()</a>, <a class="el" href="posix_8c_source.html#l00480">puts()</a>, <a class="el" href="posix_8c_source.html#l01006">read()</a>, <a class="el" href="timetests_8c_source.html#l00099">timetests()</a>, and <a class="el" href="posix_8c_source.html#l01180">write()</a>.</p>

</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="a2706f994576080967d7633282dfcabbf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> <a class="el" href="posix_8h.html#a2706f994576080967d7633282dfcabbf">blkcnt_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00052">52</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a390f3028d0805a15c3d28ee27439c389"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> <a class="el" href="posix_8h.html#a390f3028d0805a15c3d28ee27439c389">blksize_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00053">53</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a451f1b5788fa7cc5d33db47a5992e7a6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> <a class="el" href="posix_8h.html#a451f1b5788fa7cc5d33db47a5992e7a6">dev_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>make sure we use our EDOM and ERANGE values </p>
<p>Standard POSIX typedefs.</p>
<ul>
<li>Using these makes code portable accross many acrchitectures </li>
</ul>

<p>Definition at line <a class="el" href="posix_8h_source.html#l00045">45</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a6673e8f64ca9ebd7e26e6289dca06e87"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structdirent.html">dirent</a> <a class="el" href="posix_8h.html#a6673e8f64ca9ebd7e26e6289dca06e87">dirent_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00147">147</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="aed4dabeb9f7c518ded42f930a04abce8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="struct____file.html">__file</a> <a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>define FILE type </p>

<p>Definition at line <a class="el" href="posix_8h_source.html#l00257">257</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5569b17fdf47f9bb7e3b4b94aa083c39"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> <a class="el" href="posix_8h.html#a5569b17fdf47f9bb7e3b4b94aa083c39">gid_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00050">50</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="aed4e918b44240739869c4bdb1c4787a9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> <a class="el" href="posix_8h.html#aed4e918b44240739869c4bdb1c4787a9">ino_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00046">46</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="af8f4385bb42836d1e3ad4fea9d71d1b9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> <a class="el" href="posix_8h.html#af8f4385bb42836d1e3ad4fea9d71d1b9">mode_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00047">47</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a9e3c03dae15b90102eb1770dd95adadc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> <a class="el" href="posix_8h.html#a9e3c03dae15b90102eb1770dd95adadc">nlink_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00048">48</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="aac46e03c2018bada012333c31f41df12"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> <a class="el" href="posix_8h.html#aac46e03c2018bada012333c31f41df12">off_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00051">51</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a170745d0d946e79c4c2a056d1d158996"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="earth2wireframe_8c.html#a32f2e37ee053cf2ce8ca28d1f74630e5">int32_t</a> <a class="el" href="posix_8h.html#a170745d0d946e79c4c2a056d1d158996">ssize_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00055">55</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a3346b04b0420b32ccf6b706551b70762"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> <a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00054">54</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="a0f43c63879b4ab6960f41e756392c77d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> <a class="el" href="posix_8h.html#a0f43c63879b4ab6960f41e756392c77d">uid_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8h_source.html#l00049">49</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab29c02d05027f32f3f17bee2e4839777"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structutimbuf.html">utimbuf</a>  <a class="el" href="posix_8h.html#ab29c02d05027f32f3f17bee2e4839777">utime_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX utimbuf structure. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="posix_8c.html#a732642e09075838bbbca28b3529f13db" title="Set Modification and Access time of a file. ">utime()</a> </dd></dl>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="posix_8h.html#ac29db18b9f0e7e7d5c43d558ccffea6a">POSIX_errno</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa1c6a3022e8b55d43daf722d13d7e0669"></a>EOK&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa156dcc38d9ba0765c6150544963ed267"></a>EPERM&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa996f6f948b613bccc738ff8517413c1a"></a>ENOENT&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa4e376a13d0c1557d399f473218915625"></a>ESRCH&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa8cc241d56d59d11ceea8efc37bec8ed4"></a>EINTR&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa6d2c32b1730ea078f2802b34b1258a4c"></a>EIO&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa1c0d17ac093eff038b479dba021361bb"></a>ENXIO&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa755e0cbde2880a406893ad61304bac29"></a>E2BIG&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aadabd09d64c920a9a75f60165fda651d5"></a>ENOEXEC&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa87d4476eed38f45439e257081c9de369"></a>EBADF&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aae63e89f8fc44ef75addd0c1acc9c4828"></a>ECHILD&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa4bde0de54c0b708a605ed5095959c14e"></a>EAGAIN&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aaec0aa1bb79e2e55ed6d8c165e0611eca"></a>ENOMEM&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa5fa7d65262e81125cecb27e80a26ce98"></a>EACCES&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aaf740610de680c2861ac4042ad4485d15"></a>EFAULT&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aaee10bd01c67a10db950db7d8b814ef3e"></a>ENOTBLK&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa9e2f813a51a5763a892f4b1783778e4b"></a>EBUSY&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa523e02a73d840e490c14a179a997627e"></a>EEXIST&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa953d85d9cf4a55d49811d920c169eded"></a>EXDEV&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aae350307a3417656c8cabc816ba8d07cd"></a>ENODEV&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa8cd7a7b948ee085bbaeb2a210b412d6e"></a>ENOTDIR&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa6a73363cf3fa4dc0d77c4cb3b9d83321"></a>EISDIR&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa7bfd237190819a0a272db7b0aa61d5c8"></a>EINVAL&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aaf8ee28f2eeab568a1b641f6ffc1f90a8"></a>ENFILE&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa0191be5a8b35e30991789c9fe4b2c4cf"></a>EMFILE&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aaf3dc036138d242739c3dbe36c5dfa095"></a>ENOTTY&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa83ea4e18eaac3a62036e1b5723d6e353"></a>ETXTBSY&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa3d9f70d8ebd10e9d4aa420b9cb22cb53"></a>EFBIG&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa2b5265f4c8556b15ec913f61caade1eb"></a>ENOSPC&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa9e5433f0863ce3470329184a3ee495a7"></a>ESPIPE&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa56198247acea7520ae5c6005fbe76a31"></a>EROFS&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aae8a4cdbd60a66eb9705bcb0a655e94fe"></a>EMLINK&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aae573afaecfe768915268b5c70823ee70"></a>EPIPE&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa21e6505c229a4508912c375435eb86a8"></a>EDOM&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa3ffb99860526d55ef132365553694c3d"></a>ERANGE&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac29db18b9f0e7e7d5c43d558ccffea6aa952ba8aa5afef31b7893ed91ae13a56c"></a>EBADMSG&#160;</td><td class="fielddoc">
</td></tr>
</table>

<p>Definition at line <a class="el" href="posix_8h_source.html#l00061">61</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a0b33c90b99d00a8bd2595f254d1409e1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char* baseext </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>File extention of a file name. NOT POSIX. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>string to find extension in.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>pointer to basename extension. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01466">1466</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

</div>
</div>
<a class="anchor" id="a4d3dfaf2f5a63e2e4eaa128477a9b5e7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char* basename </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX Basename of filename. </p>
<ul>
<li>POSIX file and directory manipulation- man page (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>string to find basename in.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>pointer to basename of string. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01446">1446</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l00323">FontHeaderInfo()</a>, <a class="el" href="posix__tests_8c_source.html#l00465">ls_info()</a>, and <a class="el" href="cordic2c_8c_source.html#l00317">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a9c74403d1a11692bcab2c9ab7de4b0d3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int chdir </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>pathname</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX change directory. </p>
<ul>
<li>man page chdir (2).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pathname</td><td>directory to change to</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on sucess. </dd>
<dd>
-1 on error with errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01488">1488</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00084">posix_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="a43b14410cd7b1b67c7834ad2d6a193ce"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int chmod </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>pathname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="posix_8h.html#af8f4385bb42836d1e3ad4fea9d71d1b9">mode_t</a>&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX chmod function - change file access permission Unfortunately file f_open modes and f_chmod modes are not the same Files that are open have way more options - but only while the file is open. </p>
<ul>
<li>so this is a bit of a hack - we can only set read only - if on one has write perms</li>
</ul>
<p>man page chmod (2).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pathname</td><td>filename string. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>POSIX chmod modes.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>fileno on success. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01513">1513</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01619">mkdir()</a>, and <a class="el" href="posix__tests_8c_source.html#l00084">posix_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="a48dc1df1627501d3faed4bf1f9801759"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int close </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>fileno</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX Close a file with fileno handel. </p>
<ul>
<li>POSIX file functions- man page close (2).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">fileno</td><td>fileno of file.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on sucess. </dd>
<dd>
-1 on error with errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00685">685</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01239">fclose()</a>, and <a class="el" href="send_8c_source.html#l00087">send_message()</a>.</p>

</div>
</div>
<a class="anchor" id="aaeac2b41e8c2c3a5f91c9bd511a8c0a6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int closedir </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDIR.html">DIR</a> *&#160;</td>
          <td class="paramname"><em>dirp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX closedir. </p>
<ul>
<li>POSIX - directory scanning functions- man page closedir (2).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">dirp</td><td><a class="el" href="structDIR.html">DIR</a> * directory handle</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on sucess. </dd>
<dd>
-1 on error with errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01717">1717</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00517">ls()</a>.</p>

</div>
</div>
<a class="anchor" id="a03baa4d851a2a855656081a4b7c8d72c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void clrerror </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>clrerror resets stream EOF and error flags </p>
<ul>
<li>POSIX error functions- man page clrerror(3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>POSIX stream pointer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>EOF on error with errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01786">1786</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

</div>
</div>
<a class="anchor" id="a26a07a3db060ffc5659fe03495a29a1c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int dirname </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX directory name of a filename. Return the index of the last '/' character. </p>
<ul>
<li>Example: <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;dir[0] = 0;</div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;ret = dirname(path)</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;if(ret)</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160; strncpy(dir,path,ret);</div></div><!-- fragment --></li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>string to examine. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 if no directory part. </dd>
<dd>
index of last '/' character. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01551">1551</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

</div>
</div>
<a class="anchor" id="a111f2e6e6bc9f0a46210a323cab093c7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void dump_stat </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structstat.html">stat</a> *&#160;</td>
          <td class="paramname"><em>sp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Display struct stat, from POSIX stat(0 or fstat(), in ASCII. NOT POSIX. </p>
<ul>
<li>POSIX file information functions<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">sp</td><td>struct stat pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>void. </dd></dl>
</li>
</ul>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01260">1260</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00084">posix_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="a178d5d21b21c0f60d6ff8dfbbc0d86f5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a> fat_time_to_unix </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a>&#160;</td>
          <td class="paramname"><em>date</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a>&#160;</td>
          <td class="paramname"><em>time</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert FatFs file date and time to POSIX epoch seconds. NOT POSIX. </p>
<ul>
<li>man page timegm (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">date</td><td>FatFs date. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">time</td><td>FatFs time.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="time_8c.html#a8386ff819a39512ea00cfc78ce5a27d5" title="Convert tm_t structure as GMT time into GMT seconds since 1900. All calculactions are in GMT regardle...">timegm()</a></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>epoch seconds </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l02227">2227</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01344">stat()</a>.</p>

</div>
</div>
<a class="anchor" id="a5811041feb43c22c6e609a8875475abc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int fatfs_getc </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Private FatFs function called by <a class="el" href="posix_8c.html#a1d2fa24415329171e6765ed5309b6edd" title="Get byte from a TTY device or FatFs file stream open() or fopen() sets stream-&gt;get = fatfs_getc() for...">fgetc()</a> to get a byte from file stream FIXME buffer this function call NOT POSIX <a class="el" href="posix_8c.html#a3e5e6f96d36b5cdacfaf6b3976cd5af2" title="POSIX Open a file with integer mode flags. ">open()</a> assigns stream-&gt;get = <a class="el" href="posix_8c.html#a5811041feb43c22c6e609a8875475abc" title="Private FatFs function called by fgetc() to get a byte from file stream FIXME buffer this function ca...">fatfs_getc()</a> </p>
<ul>
<li>man page fgetc (3).</li>
<li>Notes: fgetc does all tests prior to caling us, including ungetc.</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>POSIX stream pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>character. </dd>
<dd>
EOF on error with errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01984">1984</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00895">open()</a>.</p>

</div>
</div>
<a class="anchor" id="adfd015ed8dbac3473269d1a068bf5904"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int fatfs_putc </td>
          <td>(</td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>stream</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Private FatFs function called by <a class="el" href="posix_8c.html#a6bdef0a37397953c3b0f14c4d5d0eb10" title="Put a byte to TTY device or FatFs file stream open() or fopen() sets stream-&gt;put = fatfs_outc() for F...">fputc()</a> to put a byte from file stream NOT POSIX <a class="el" href="posix_8c.html#a3e5e6f96d36b5cdacfaf6b3976cd5af2" title="POSIX Open a file with integer mode flags. ">open()</a> assigns stream-&gt;put = <a class="el" href="posix_8c.html#adfd015ed8dbac3473269d1a068bf5904" title="Private FatFs function called by fputc() to put a byte from file stream NOT POSIX open() assigns stre...">fatfs_putc()</a> </p>
<ul>
<li>man page fputc (3).</li>
<li>Notes: fputc does all tests prior to caling us.</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">c</td><td>character. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>POSIX stream pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>character </dd>
<dd>
EOF on error with errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l02074">2074</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00278">fputc()</a>, and <a class="el" href="posix_8c_source.html#l00895">open()</a>.</p>

</div>
</div>
<a class="anchor" id="ac20f0fc565c27bbbb900bde3337b09b9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int fatfs_to_errno </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ff_8h.html#a49d0171ecbd362cda5680a0d360db44c">FRESULT</a>&#160;</td>
          <td class="paramname"><em>Result</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert FafFs error result to POSIX errno. NOT POSIX. </p>
<ul>
<li>man page errno (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">Result</td><td>FatFs Result code.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>POSIX errno. </dd>
<dd>
EBADMSG if no conversion possible. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l02114">2114</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01488">chdir()</a>, <a class="el" href="posix_8c_source.html#l01513">chmod()</a>, <a class="el" href="posix_8c_source.html#l00685">close()</a>, <a class="el" href="posix_8c_source.html#l01717">closedir()</a>, <a class="el" href="posix_8c_source.html#l01984">fatfs_getc()</a>, <a class="el" href="posix_8c_source.html#l02074">fatfs_putc()</a>, <a class="el" href="posix_8c_source.html#l00827">ftruncate()</a>, <a class="el" href="posix_8c_source.html#l01596">getcwd()</a>, <a class="el" href="posix_8c_source.html#l00617">lseek()</a>, <a class="el" href="posix_8c_source.html#l01619">mkdir()</a>, <a class="el" href="posix_8c_source.html#l00895">open()</a>, <a class="el" href="posix_8c_source.html#l01736">opendir()</a>, <a class="el" href="posix_8c_source.html#l01006">read()</a>, <a class="el" href="posix_8c_source.html#l01755">readdir()</a>, <a class="el" href="posix_8c_source.html#l01648">rename()</a>, <a class="el" href="posix_8c_source.html#l01671">rmdir()</a>, <a class="el" href="posix_8c_source.html#l01344">stat()</a>, <a class="el" href="posix_8c_source.html#l01096">syncfs()</a>, <a class="el" href="posix_8c_source.html#l01142">truncate()</a>, <a class="el" href="posix_8c_source.html#l01693">unlink()</a>, <a class="el" href="posix_8c_source.html#l01407">utime()</a>, and <a class="el" href="posix_8c_source.html#l01180">write()</a>.</p>

</div>
</div>
<a class="anchor" id="a81f14429660ca6a685676d6ceaf5350c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int fatfs_to_fileno </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structFIL.html">FIL</a> *&#160;</td>
          <td class="paramname"><em>fh</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert FatFS file handle to POSIX fileno. NOT POSIX. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">fh</td><td>FatFS file pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>fileno on success. </dd>
<dd>
-1 on error with errno set to EBADF. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l02190">2190</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

</div>
</div>
<a class="anchor" id="ad6fd240fec1d65213f34b6e6465a8033"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int fclose </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX close a file stream. </p>
<ul>
<li>man page flose (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>POSIX stream pointer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on sucess. </dd>
<dd>
-1 on error witrh errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01239">1239</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="buffer_8c_source.html#l00075">buffer_read_close()</a>, <a class="el" href="posix__tests_8c_source.html#l00259">cat()</a>, <a class="el" href="posix__tests_8c_source.html#l00302">copy()</a>, <a class="el" href="posix__tests_8c_source.html#l00363">hexdump()</a>, <a class="el" href="posix__tests_8c_source.html#l00600">logfile()</a>, <a class="el" href="earth2wireframe_8c_source.html#l00077">main()</a>, <a class="el" href="matrix_8c_source.html#l00527">MatRead()</a>, <a class="el" href="matrix_8c_source.html#l00605">MatWrite()</a>, <a class="el" href="bdffontutil_8c_source.html#l00790">ReadBdf()</a>, <a class="el" href="posix__tests_8c_source.html#l00626">sum()</a>, <a class="el" href="timetests_8c_source.html#l00099">timetests()</a>, and <a class="el" href="posix__tests_8c_source.html#l00661">upload()</a>.</p>

</div>
</div>
<a class="anchor" id="ab814cff71bcbcc3a72a6c399e5084573"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a>* fdevopen </td>
          <td>(</td>
          <td class="paramtype">int(*)(char, <a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *)&#160;</td>
          <td class="paramname"><em>put</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int(*)(<a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *)&#160;</td>
          <td class="paramname"><em>get</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Device open functions. </p>
<p>Assign stdin,stdout,stderr or any use defined I/O NOT POSIX</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*put</td><td>putc function pointer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*get</td><td>gutc function pointer </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01876">1876</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

</div>
</div>
<a class="anchor" id="af98213e7457dbe734d81d34758d2b505"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int feof </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>feof reports if the stream is at EOF </p>
<ul>
<li>POSIX file position functions- man page feof (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>POSIX stream pointer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 if EOF set, 0 otherwise. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00505">505</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

</div>
</div>
<a class="anchor" id="ac37bff9f639fa95401b71839bbabd9a0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int ferror </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ferror reports if the stream has an error flag set </p>
<ul>
<li>man page ferror (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>POSIX stream pointer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 if EOF set, 0 otherwise. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01798">1798</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

</div>
</div>
<a class="anchor" id="a1d2fa24415329171e6765ed5309b6edd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int fgetc </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get byte from a TTY device or FatFs file stream <a class="el" href="posix_8c.html#a3e5e6f96d36b5cdacfaf6b3976cd5af2" title="POSIX Open a file with integer mode flags. ">open()</a> or <a class="el" href="posix_8c.html#a8e661c338f41695d1a1e70aed6255e2d" title="POSIX Open a file with path name and ascii file mode string. ">fopen()</a> sets stream-&gt;get = <a class="el" href="posix_8c.html#a5811041feb43c22c6e609a8875475abc" title="Private FatFs function called by fgetc() to get a byte from file stream FIXME buffer this function ca...">fatfs_getc()</a> for FatFs functions See <a class="el" href="posix_8c.html#ab814cff71bcbcc3a72a6c399e5084573" title="Device open functions. ">fdevopen()</a> sets stream-&gt;get for TTY devices. </p>
<ul>
<li>man page fgetc (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>POSIX stream pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>character. </dd>
<dd>
EOF on error with errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00216">216</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00420">fgets()</a>, <a class="el" href="posix_8c_source.html#l00336">getchar()</a>, and <a class="el" href="posix_8c_source.html#l01006">read()</a>.</p>

</div>
</div>
<a class="anchor" id="acb9e5741c01183dfe3179d646b264e5b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int fgetpos </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a> *&#160;</td>
          <td class="paramname"><em>pos</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX get position of file stream. </p>
<ul>
<li>man page fgetpos (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>POSIX file stream. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">pos</td><td>position pointer for return.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on sucess. </dd>
<dd>
-1 on error with errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00522">522</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

</div>
</div>
<a class="anchor" id="a3759827e157badd49d076bd157f508d9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char* fgets </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>stream</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get a string from stdin See <a class="el" href="posix_8c.html#ab814cff71bcbcc3a72a6c399e5084573" title="Device open functions. ">fdevopen()</a> sets stream-&gt;put get for TTY devices </p>
<p>POSIX string I/O</p><ul>
<li>man page fgets (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>POSIX stream pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>character. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00420">420</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00259">cat()</a>, <a class="el" href="earth2wireframe_8c_source.html#l00077">main()</a>, <a class="el" href="matrix_8c_source.html#l00527">MatRead()</a>, <a class="el" href="bdffontutil_8c_source.html#l00790">ReadBdf()</a>, <a class="el" href="time_8c_source.html#l00901">setdate()</a>, <a class="el" href="posix__tests_8c_source.html#l00661">upload()</a>, and <a class="el" href="user__main_8c_source.html#l00274">user_tasks()</a>.</p>

</div>
</div>
<a class="anchor" id="aceb657a1b3c10d576aed287714bfd5d1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int fileno </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert POSIX stream pointer to POSIX fileno (index of __iob[]) </p>
<ul>
<li>man page fileno (3) <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>stream pointer</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>int fileno on success </dd>
<dd>
-1 with errno = EBAFD if stream is NULL or not found </dd></dl>
</li>
</ul>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00724">724</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01239">fclose()</a>, <a class="el" href="posix_8c_source.html#l00724">fileno()</a>, <a class="el" href="posix_8c_source.html#l00754">fileno_to_stream()</a>, <a class="el" href="posix_8c_source.html#l00782">fopen()</a>, <a class="el" href="posix_8c_source.html#l00803">fread()</a>, <a class="el" href="posix_8c_source.html#l02311">free_file_descriptor()</a>, <a class="el" href="posix_8c_source.html#l00545">fseek()</a>, <a class="el" href="posix_8c_source.html#l00585">ftell()</a>, <a class="el" href="posix_8c_source.html#l00868">fwrite()</a>, <a class="el" href="posix_8c_source.html#l00895">open()</a>, and <a class="el" href="posix_8c_source.html#l00368">ungetc()</a>.</p>

</div>
</div>
<a class="anchor" id="a9b859123258b36eb57f4f71d2606d8a5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="structFIL.html">FIL</a>* fileno_to_fatfs </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>fileno</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert POSIX fileno to FatFS handle NOT POSIX. </p>
<ul>
<li>FatFS file handle is pointed to by the avr-libc stream-&gt;udata.</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">fileno</td><td>fileno of file</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="structFIL.html">FIL</a> * FatFS file handle on success. </dd>
<dd>
NULL if POSIX fileno is invalid NULL </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l02276">2276</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00685">close()</a>, <a class="el" href="posix_8c_source.html#l00585">ftell()</a>, <a class="el" href="posix_8c_source.html#l00827">ftruncate()</a>, <a class="el" href="posix_8c_source.html#l00617">lseek()</a>, <a class="el" href="posix_8c_source.html#l00895">open()</a>, <a class="el" href="posix_8c_source.html#l01006">read()</a>, <a class="el" href="posix_8c_source.html#l01069">sync()</a>, <a class="el" href="posix_8c_source.html#l01096">syncfs()</a>, and <a class="el" href="posix_8c_source.html#l01180">write()</a>.</p>

</div>
</div>
<a class="anchor" id="a2c01fe0e0aa550b2a8b4dcc326983b57"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a>* fileno_to_stream </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>fileno</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert POSIX fileno to POSIX FILE stream pointer. NOT POSIX. </p>
<ul>
<li>inverse of POSIX <a class="el" href="posix_8c.html#aceb657a1b3c10d576aed287714bfd5d1" title="Convert POSIX stream pointer to POSIX fileno (index of __iob[]) ">fileno()</a></li>
<li>man page fileno (3)</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">fileno</td><td>POSIX fileno is the index of __iob[].</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="posix_8c.html#aceb657a1b3c10d576aed287714bfd5d1" title="Convert POSIX stream pointer to POSIX fileno (index of __iob[]) ">fileno()</a> </dd></dl>
<dl class="section return"><dt>Returns</dt><dd>FILE * on success </dd>
<dd>
NULL on error with errno set, NULL if fileno out of bounds </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00754">754</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00685">close()</a>, <a class="el" href="posix_8c_source.html#l02276">fileno_to_fatfs()</a>, <a class="el" href="posix_8c_source.html#l00782">fopen()</a>, <a class="el" href="posix_8c_source.html#l02311">free_file_descriptor()</a>, <a class="el" href="posix_8c_source.html#l00617">lseek()</a>, <a class="el" href="posix_8c_source.html#l00895">open()</a>, <a class="el" href="posix_8c_source.html#l01006">read()</a>, <a class="el" href="posix_8c_source.html#l01096">syncfs()</a>, and <a class="el" href="posix_8c_source.html#l01180">write()</a>.</p>

</div>
</div>
<a class="anchor" id="a8e661c338f41695d1a1e70aed6255e2d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a>* fopen </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX Open a file with path name and ascii file mode string. </p>
<ul>
<li>man page fopen(3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>filename string. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>POSIX open mode strings.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>stream * on success. </dd>
<dd>
NULL on error with errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00782">782</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="buffer_8c_source.html#l00044">buffer_read_open()</a>, <a class="el" href="posix__tests_8c_source.html#l00259">cat()</a>, <a class="el" href="posix__tests_8c_source.html#l00302">copy()</a>, <a class="el" href="posix__tests_8c_source.html#l00363">hexdump()</a>, <a class="el" href="posix__tests_8c_source.html#l00600">logfile()</a>, <a class="el" href="cordic2c_8c_source.html#l00317">main()</a>, <a class="el" href="matrix_8c_source.html#l00527">MatRead()</a>, <a class="el" href="matrix_8c_source.html#l00605">MatWrite()</a>, <a class="el" href="bdffontutil_8c_source.html#l00790">ReadBdf()</a>, <a class="el" href="posix__tests_8c_source.html#l00626">sum()</a>, <a class="el" href="timetests_8c_source.html#l00099">timetests()</a>, and <a class="el" href="posix__tests_8c_source.html#l00661">upload()</a>.</p>

</div>
</div>
<a class="anchor" id="a91ade11061b9b43b1edd37ff32f76591"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int fprintf </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>fp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>fprintf function Example user defined printf function using fputc for I/O This method allows I/O to devices and strings without typical C++ overhead </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*fp</td><td>FILE stream pointer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">fmt</td><td>printf forat string </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">...</td><td>vararg list or arguments </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>size of printed result </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l02484">2484</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="bdffontutil_8c_source.html#l00365">Convert_Font2c()</a>, <a class="el" href="bdffontutil_8c_source.html#l00062">db_calloc()</a>, <a class="el" href="bdffontutil_8c_source.html#l00457">emit_data()</a>, <a class="el" href="bdffontutil_8c_source.html#l00442">emit_number()</a>, <a class="el" href="bdffontutil_8c_source.html#l00478">emit_str()</a>, <a class="el" href="send_8c_source.html#l00026">escape()</a>, <a class="el" href="bdffontutil_8c_source.html#l00323">FontHeaderInfo()</a>, <a class="el" href="bdffontutil_8c_source.html#l01753">FontPreview()</a>, <a class="el" href="bdffontutil_8c_source.html#l01836">FontPreviewFull()</a>, <a class="el" href="bdffontutil_8c_source.html#l01938">FontPreviewProportional()</a>, <a class="el" href="cordic2c_8c_source.html#l00128">get_date()</a>, <a class="el" href="cordic2c_8c_source.html#l00317">main()</a>, <a class="el" href="matrix_8c_source.html#l00605">MatWrite()</a>, <a class="el" href="bdffontutil_8c_source.html#l00790">ReadBdf()</a>, <a class="el" href="send_8c_source.html#l00087">send_message()</a>, <a class="el" href="timetests_8c_source.html#l00099">timetests()</a>, <a class="el" href="bdffontutil_8c_source.html#l00721">WriteCharacterBits()</a>, <a class="el" href="bdffontutil_8c_source.html#l00631">WriteFontBits()</a>, <a class="el" href="bdffontutil_8c_source.html#l02040">WriteFontBitsPreview()</a>, <a class="el" href="bdffontutil_8c_source.html#l00654">WriteFontInfo()</a>, and <a class="el" href="bdffontutil_8c_source.html#l00684">WriteFontTable()</a>.</p>

</div>
</div>
<a class="anchor" id="a6bdef0a37397953c3b0f14c4d5d0eb10"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int fputc </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>stream</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Put a byte to TTY device or FatFs file stream <a class="el" href="posix_8c.html#a3e5e6f96d36b5cdacfaf6b3976cd5af2" title="POSIX Open a file with integer mode flags. ">open()</a> or <a class="el" href="posix_8c.html#a8e661c338f41695d1a1e70aed6255e2d" title="POSIX Open a file with path name and ascii file mode string. ">fopen()</a> sets stream-&gt;put = fatfs_outc() for FatFs functions See <a class="el" href="posix_8c.html#ab814cff71bcbcc3a72a6c399e5084573" title="Device open functions. ">fdevopen()</a> sets stream-&gt;put get for TTY devices. </p>
<ul>
<li>man page fputc (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>POSIX stream pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>character. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00278">278</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l02468">_fprintf_putc()</a>, <a class="el" href="posix_8c_source.html#l00457">fputs()</a>, <a class="el" href="posix_8c_source.html#l00401">putc()</a>, <a class="el" href="posix_8c_source.html#l00351">putchar()</a>, <a class="el" href="posix_8c_source.html#l00480">puts()</a>, and <a class="el" href="posix_8c_source.html#l01180">write()</a>.</p>

</div>
</div>
<a class="anchor" id="a30a4070a8b1719d53cb01dd4b2a65069"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int fputs </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>stream</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>put a string to stdout See <a class="el" href="posix_8c.html#ab814cff71bcbcc3a72a6c399e5084573" title="Device open functions. ">fdevopen()</a> sets stream-&gt;put get for TTY devices </p>
<ul>
<li>man page fputs (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>POSIX stream pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>character. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00457">457</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

</div>
</div>
<a class="anchor" id="a01233ac8fd574e20b0b38472adbee551"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a> fread </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a>&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a>&#160;</td>
          <td class="paramname"><em>nmemb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>stream</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX read nmemb elements from buf, size bytes each, to the stream fd. </p>
<ul>
<li>man page fread (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">ptr</td><td>buffer. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">nmemb</td><td>number of items to read. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>size of each item in bytes. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>POSIX file stream.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>count on sucess. </dd>
<dd>
0 or &lt; size on error with errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00803">803</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="buffer_8c_source.html#l00100">buffer_getc()</a>, <a class="el" href="posix__tests_8c_source.html#l00302">copy()</a>, <a class="el" href="posix__tests_8c_source.html#l00363">hexdump()</a>, <a class="el" href="testflash_8c_source.html#l00052">main()</a>, and <a class="el" href="posix__tests_8c_source.html#l00626">sum()</a>.</p>

</div>
</div>
<a class="anchor" id="a38496612f759733234128893e4c60a89"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int free_file_descriptor </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>fileno</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Free POSIX fileno FILE descriptor. NOT POSIX. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">fileno</td><td>POSIX file number __iob[] index.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>fileno on success. </dd>
<dd>
-1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l02311">2311</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00685">close()</a>, and <a class="el" href="posix_8c_source.html#l00895">open()</a>.</p>

</div>
</div>
<a class="anchor" id="ad31144743f0014784193221563ca8dd2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int fseek </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>whence</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX seek to file possition. </p>
<ul>
<li>man page fseek (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>POSIX file stream. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">offset</td><td>offset to seek to. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">whence</td><td><ul>
<li>SEEK_SET The offset is set to offset bytes.</li>
<li>SEEK_CUR The offset is set to its current location plus offset bytes.</li>
<li>SEEK_END The offset is set to the size of the file plus offset bytes.</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>file position on sucess. </dd>
<dd>
-1 on error. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00545">545</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00571">fsetpos()</a>, and <a class="el" href="posix_8c_source.html#l00666">rewind()</a>.</p>

</div>
</div>
<a class="anchor" id="a8705d74fe77c1b23824074ecd14be1c7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int fsetpos </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a> *&#160;</td>
          <td class="paramname"><em>pos</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX set position of file stream. </p>
<ul>
<li>man page fsetpos (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>POSIX file stream. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">pos</td><td>position pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 with *pos set to position on sucess. </dd>
<dd>
-1 on error with errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00571">571</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

</div>
</div>
<a class="anchor" id="af53dca187c78408fe2f1958c4eb88603"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> long ftell </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX file position of open stream. </p>
<ul>
<li>man page fteel (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>POSIX file stream.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>file position on sucess. </dd>
<dd>
-1 on error with errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00585">585</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00522">fgetpos()</a>.</p>

</div>
</div>
<a class="anchor" id="a474e4e6cac62ef12c66b8a597c14e5f6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int ftruncate </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>fd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aac46e03c2018bada012333c31f41df12">off_t</a>&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX truncate open file to length. </p>
<ul>
<li>man page ftruncate (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">fd</td><td>open file number. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>length to truncate to.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success. </dd>
<dd>
-1 on fail. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00827">827</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

</div>
</div>
<a class="anchor" id="a148630cbecc0822d9395f002691ffe75"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a> fwrite </td>
          <td>(</td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a>&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a>&#160;</td>
          <td class="paramname"><em>nmemb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>stream</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX write nmemb elements from buf, size bytes each, to the stream fd. </p>
<ul>
<li>man page write (2).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">ptr</td><td>buffer. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">nmemb</td><td>number of items to write. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>size of each item in bytes. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>POSIX file stream.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>count written on sucess. </dd>
<dd>
0 or &lt; size on error with errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00868">868</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00302">copy()</a>, <a class="el" href="posix__tests_8c_source.html#l00600">logfile()</a>, <a class="el" href="testflash_8c_source.html#l00052">main()</a>, and <a class="el" href="posix__tests_8c_source.html#l00661">upload()</a>.</p>

</div>
</div>
<a class="anchor" id="ab38efc888190556f106cafb08d17d16f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int getchar </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>functions normally defined as macros </p>
<p>get a character from stdin See <a class="el" href="posix_8c.html#ab814cff71bcbcc3a72a6c399e5084573" title="Device open functions. ">fdevopen()</a> sets stream-&gt;get for TTY devices</p>
<ul>
<li>man page getchar (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>POSIX stream pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>character. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00336">336</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00435">testpage()</a>.</p>

</div>
</div>
<a class="anchor" id="a6411298bb01166960f5a0378ac0fdb82"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char* getcwd </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>pathname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX get current working directory. </p>
<ul>
<li>man page getcwd (2).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pathname</td><td>directory to change to</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on sucess. </dd>
<dd>
-1 on error with errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01596">1596</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00517">ls()</a>, <a class="el" href="earth2wireframe_8c_source.html#l00077">main()</a>, and <a class="el" href="posix__tests_8c_source.html#l00084">posix_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="a31986cce890109c211ccb14151aafd0e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int isatty </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>fileno</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Test POSIX fileno if it is a Serial Console/TTY. </p>
<ul>
<li>POSIX character I/O functions<ul>
<li>man page isatty (3).</li>
</ul>
</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">fileno</td><td>POSIX fileno of open file.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 if fileno is a serial TTY/Console (uart in avr-libc terms). </dd>
<dd>
0 if POSIX fileno is NOT a Serial TTY. </dd></dl>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000002">Todo:</a></b></dt><dd>Perhaps we should verify console functions have been added ? </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00196">196</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01260">dump_stat()</a>, <a class="el" href="posix_8c_source.html#l02276">fileno_to_fatfs()</a>, <a class="el" href="posix_8c_source.html#l02311">free_file_descriptor()</a>, <a class="el" href="posix_8c_source.html#l00585">ftell()</a>, <a class="el" href="posix_8c_source.html#l00827">ftruncate()</a>, <a class="el" href="posix_8c_source.html#l00617">lseek()</a>, <a class="el" href="posix_8c_source.html#l02355">new_file_descriptor()</a>, <a class="el" href="posix_8c_source.html#l01069">sync()</a>, <a class="el" href="posix_8c_source.html#l01096">syncfs()</a>, and <a class="el" href="posix_8c_source.html#l00368">ungetc()</a>.</p>

</div>
</div>
<a class="anchor" id="abb875e56516d235a6aaf69951444cc63"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="posix_8h.html#aac46e03c2018bada012333c31f41df12">off_t</a> lseek </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>fileno</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aac46e03c2018bada012333c31f41df12">off_t</a>&#160;</td>
          <td class="paramname"><em>position</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>whence</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX seek to file position. </p>
<ul>
<li>man page lseek (2).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">fileno</td><td>POSIX fileno of open file. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">position</td><td>offset to seek to. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">whence</td><td><ul>
<li>SEEK_SET The offset is set to offset bytes.</li>
<li>SEEK_CUR The offset is set to its current location plus offset bytes.</li>
<li>SEEK_END The offset is set to the size of the file plus offset bytes.</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>file position on sucess. </dd>
<dd>
-1 on error. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00617">617</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00545">fseek()</a>.</p>

</div>
</div>
<a class="anchor" id="a39eea0b104438afa9ca0500c2e8d6887"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char* mctime </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a>&#160;</td>
          <td class="paramname"><em>timev</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Display Ascii formatted time from timev seconds NOT POSIX. </p>
<ul>
<li>Assumes no timezone offset.</li>
<li>man page ctime (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">timev</td><td>epoch time in seconds </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>ascii string pointer of POSIX <a class="el" href="time_8c.html#a77d6bba12950028852621634ffaf4835" title="Convert local time_t *t epoch time into POSIX asctime() string buf[]. ">ctime()</a> </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="time_8c.html#a77d6bba12950028852621634ffaf4835" title="Convert local time_t *t epoch time into POSIX asctime() string buf[]. ">ctime()</a> </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01323">1323</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01260">dump_stat()</a>, and <a class="el" href="posix__tests_8c_source.html#l00465">ls_info()</a>.</p>

</div>
</div>
<a class="anchor" id="a8b57a7ee1ba139c636477cf2998e8b1e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int mkdir </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>pathname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="posix_8h.html#af8f4385bb42836d1e3ad4fea9d71d1b9">mode_t</a>&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX make a directory. </p>
<ul>
<li>man page mkdir (2).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pathname</td><td>directory to create</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on sucess. </dd>
<dd>
-1 on error with errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01619">1619</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00084">posix_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="aa1efac33e58ea2abd4cad808e05eb6dd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int mkfs </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Formt SD card. </p>
<ul>
<li>FatFS to POSIX bridge functions<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*name</td><td>device name  void </td></tr>
  </table>
  </dd>
</dl>
</li>
</ul>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01922">1922</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00084">posix_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="abab788c42cce343cde2f5b8f90015229"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int new_file_descriptor </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Allocate a POSIX FILE descriptor. NOT POSIX. </p>
<dl class="section return"><dt>Returns</dt><dd>fileno on success. </dd>
<dd>
-1 on failure with errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l02355">2355</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00895">open()</a>.</p>

</div>
</div>
<a class="anchor" id="a3e5e6f96d36b5cdacfaf6b3976cd5af2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int open </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>pathname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>flags</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX Open a file with integer mode flags. </p>
<ul>
<li>man page open (2).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pathname</td><td>filename string. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>POSIX open modes.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>fileno on success. </dd>
<dd>
-1 on error with errno set. </dd></dl>
<p>Seek to end of the file </p>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00895">895</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00782">fopen()</a>.</p>

</div>
</div>
<a class="anchor" id="a19051b9081dfef221d9bf4583e935031"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structDIR.html">DIR</a>* opendir </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>pathdir</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8c_source.html#l01736">1736</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00517">ls()</a>.</p>

</div>
</div>
<a class="anchor" id="a4ce26afbb10890d31c53a8ff76d992e3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void perror </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX <a class="el" href="posix_8c.html#a4ce26afbb10890d31c53a8ff76d992e3" title="POSIX perror() - convert POSIX errno to text with user message. ">perror()</a> - convert POSIX errno to text with user message. </p>
<ul>
<li>man page errno (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>User message displayed before the error message</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="posix_8c.html#a76ebfe24a40210e5935998c1fa86d3a0" title="POSIX error messages for each errno value. ">sys_errlist</a>[]. </dd></dl>
<dl class="section return"><dt>Returns</dt><dd>void. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01814">1814</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="send_8c_source.html#l00026">escape()</a>, <a class="el" href="send_8c_source.html#l00087">send_message()</a>, and <a class="el" href="timetests_8c_source.html#l00099">timetests()</a>.</p>

</div>
</div>
<a class="anchor" id="a607feb06d296e0ff60d5a19538bd17fc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int posix_fopen_modes_to_open </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>mode</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert POSIX fopen mode to POSIX open mode flags. NOT POSIX. </p>
<ul>
<li>man page fopen (3).</li>
<li>man page open (2).</li>
<li>Valid modes.</li>
<li>Read<ul>
<li>"r", "rb"</li>
</ul>
</li>
<li>Read and Write<ul>
<li>"r+", "r+b", "rb+"</li>
</ul>
</li>
<li>Write<ul>
<li>"w", "wb"</li>
</ul>
</li>
<li>Write and Read.<ul>
<li>"w+", "w+b", "wb+"</li>
<li>"w+" implies write/read access.</li>
</ul>
</li>
<li>Append<ul>
<li>"a", "ab"</li>
</ul>
</li>
<li>Append and Read<ul>
<li>"a+", "a+b", "ab+"</li>
</ul>
</li>
<li>Note: ORDER IS IMPORTANT! so w+ is NOT the same as r+.</li>
<li>ALWAYS do a fflush or fseek between rear write operations if + is used..</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>POSIX file mode string.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>open mode flags. </dd>
<dd>
-1 on error. </dd></dl>
<dl class="section warning"><dt>Warning</dt><dd>read and write BOTH share the same stream buffer and buffer index pointers. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l02418">2418</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00782">fopen()</a>.</p>

</div>
</div>
<a class="anchor" id="ae59fd612372df957f59fb3cdcbd8b9e9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int putc </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>stream</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Put a character to a stream See <a class="el" href="posix_8c.html#ab814cff71bcbcc3a72a6c399e5084573" title="Device open functions. ">fdevopen()</a> sets stream-&gt;put get for TTY devices. </p>
<ul>
<li>man page putc (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>POSIX stream pointer. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00401">401</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

</div>
</div>
<a class="anchor" id="ac9195b3de02e450cfdeea1ce97b32da4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int putchar </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>put a character to stdout See <a class="el" href="posix_8c.html#ab814cff71bcbcc3a72a6c399e5084573" title="Device open functions. ">fdevopen()</a> sets stream-&gt;put get for TTY devices </p>
<ul>
<li>man page putchar (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>POSIX stream pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>character. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00351">351</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

</div>
</div>
<a class="anchor" id="aa360dd5203b246757abc21253ed8eb2e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int puts </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>put a string to stdout See <a class="el" href="posix_8c.html#ab814cff71bcbcc3a72a6c399e5084573" title="Device open functions. ">fdevopen()</a> sets stream-&gt;put get for TTY devices </p>
<ul>
<li>man page puts (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>POSIX stream pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>character. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00480">480</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00259">cat()</a>.</p>

</div>
</div>
<a class="anchor" id="af104a2c05bef787e54c6925616e867df"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="posix_8h.html#a170745d0d946e79c4c2a056d1d158996">ssize_t</a> read </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>fd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a>&#160;</td>
          <td class="paramname"><em>count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX read count bytes from *buf to fileno fd. </p>
<ul>
<li>man page read (2).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">fd</td><td>POSIX fileno. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">buf</td><td>buffer. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">count</td><td>number of bytes to write.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>count on sucess. </dd>
<dd>
-1 on error with errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01006">1006</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00803">fread()</a>, <a class="el" href="uart_8c_source.html#l00264">rx_fifo_read()</a>, and <a class="el" href="send_8c_source.html#l00087">send_message()</a>.</p>

</div>
</div>
<a class="anchor" id="a58257faf8b13b3f14558613c632b2373"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structdirent.html">dirent</a>* readdir </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDIR.html">DIR</a> *&#160;</td>
          <td class="paramname"><em>dirp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="posix_8c_source.html#l01755">1755</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00517">ls()</a>.</p>

</div>
</div>
<a class="anchor" id="ada8cc8f9394cf54db8f338838a9fa7ce"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int rename </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>oldpath</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>newpath</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX rename a file by name. </p>
<ul>
<li>man page (2).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">oldpath</td><td>original name. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">newpath</td><td>new name.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success. </dd>
<dd>
-1 on error with errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01648">1648</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00084">posix_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="a35e6a58f44d4651951ecfeb97f369884"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void rewind </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX rewind file to the beginning. </p>
<ul>
<li>man page rewind (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>POSIX file stream.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>void. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00666">666</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

</div>
</div>
<a class="anchor" id="a6080dee579486f132062435577b77d10"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int rmdir </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>pathname</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX delete a directory. </p>
<ul>
<li>man page rmdir (2).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pathname</td><td>directory to delete.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on sucess. </dd>
<dd>
-1 on error with errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01671">1671</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00084">posix_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="abef70bf7a4af8a1f4998db0035c51781"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int <a class="el" href="structstat.html">stat</a> </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structstat.html">stat</a> *&#160;</td>
          <td class="paramname"><em>buf</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX stat - get file status of named file. </p>
<ul>
<li>man page (2).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">name</td><td>file name. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">buf</td><td>struct stat buffer to return results in.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success. </dd>
<dd>
-1 on error with errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01344">1344</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="ff_8c_source.html#l04387">f_getfree()</a>, <a class="el" href="ff_8c_source.html#l05296">f_mkfs()</a>, <a class="el" href="ff_8c_source.html#l02998">find_volume()</a>, <a class="el" href="posix__tests_8c_source.html#l00517">ls()</a>, <a class="el" href="posix__tests_8c_source.html#l00465">ls_info()</a>, <a class="el" href="bdffont2c_8c_source.html#l00091">main()</a>, and <a class="el" href="posix__tests_8c_source.html#l00084">posix_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="ae03e9f4fe4bf5e64a70fd186d532a5c8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char <a class="el" href="mmc__hal_8h.html#a399da2caab82ec1bb3d5a8fbc5306768">WEAK_ATR</a>* strerror </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>errnum</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX <a class="el" href="posix_8c.html#ae03e9f4fe4bf5e64a70fd186d532a5c8" title="POSIX strerror() - convert POSIX errno to text with user message. ">strerror()</a> - convert POSIX errno to text with user message. </p>
<ul>
<li>man page strerror (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">errnum</td><td>index for sys_errlist[]</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="posix_8c.html#a76ebfe24a40210e5935998c1fa86d3a0" title="POSIX error messages for each errno value. ">sys_errlist</a>[]. </dd></dl>
<dl class="section return"><dt>Returns</dt><dd>char * </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01840">1840</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

</div>
</div>
<a class="anchor" id="a6311c6b29216455ec9b716b9eb31c799"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char* strerror_r </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>errnum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a>&#160;</td>
          <td class="paramname"><em>buflen</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX <a class="el" href="posix_8c.html#a6311c6b29216455ec9b716b9eb31c799" title="POSIX strerror_r() - convert POSIX errno to text with user message. ">strerror_r()</a> - convert POSIX errno to text with user message. </p>
<ul>
<li>man page strerror (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">errnum</td><td>index for sys_errlist[] </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">buf</td><td>user buffer for error message </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">buflen</td><td>length of user buffer for error message</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="posix_8c.html#a76ebfe24a40210e5935998c1fa86d3a0" title="POSIX error messages for each errno value. ">sys_errlist</a>[]. </dd></dl>
<dl class="section return"><dt>Returns</dt><dd>char * </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01857">1857</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

</div>
</div>
<a class="anchor" id="a8f7f00d4ec0d99440762b0a664aebf70"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void sync </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX Sync all pending file changes and metadata on ALL files. </p>
<ul>
<li>man page sync (2).</li>
</ul>
<dl class="section return"><dt>Returns</dt><dd>void. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01069">1069</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00661">upload()</a>.</p>

</div>
</div>
<a class="anchor" id="a521c33bdb3606c9f3546b9cbcd37b9ac"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int syncfs </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>fd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX Sync pending file changes and metadata for specified fileno. </p>
<ul>
<li>man page syncfs (2).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">fd</td><td>POSIX fileno to sync. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0. </dd>
<dd>
-1 on error witrh errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01096">1096</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01069">sync()</a>.</p>

</div>
</div>
<a class="anchor" id="a73a95c4a93875be906e573c00b30c5ea"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int truncate </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aac46e03c2018bada012333c31f41df12">off_t</a>&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX truncate named file to length. </p>
<ul>
<li>man page truncate (2).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>file name to truncate. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>length to truncate to.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on sucess. </dd>
<dd>
-1 n fail. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01142">1142</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

</div>
</div>
<a class="anchor" id="af979e8f6598be71d68be7cc49a41626b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int ungetc </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a> *&#160;</td>
          <td class="paramname"><em>stream</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Un-Get byte from a TTY device or FatFs file stream. </p>
<ul>
<li>man page ungetc (3).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">c</td><td>Character to unget </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>POSIX stream pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>character. </dd>
<dd>
EOF on error with errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00368">368</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

</div>
</div>
<a class="anchor" id="aa5666c514336f78c6d1ab6bc35c74ae0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void unix_time_to_fat </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a3346b04b0420b32ccf6b706551b70762">time_t</a>&#160;</td>
          <td class="paramname"><em>epoch</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *&#160;</td>
          <td class="paramname"><em>date</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *&#160;</td>
          <td class="paramname"><em>time</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert Linux POSIX time_t to FAT32 date and time. NOT POSIX. </p>
<ul>
<li>man page gmtime (3). <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">epoch</td><td>unix epoch seconds </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*date</td><td>fat32 date </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*time</td><td>fat32 time </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
</li>
</ul>

<p>Definition at line <a class="el" href="posix_8c_source.html#l02252">2252</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l01407">utime()</a>.</p>

</div>
</div>
<a class="anchor" id="aa964d662c19b2021d9cfd0c71bc686bd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int unlink </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>pathname</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX delete a file. </p>
<ul>
<li>man page unlink (2).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pathname</td><td>filename to delete.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on sucess. </dd>
<dd>
-1 on error with errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01693">1693</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix__tests_8c_source.html#l00084">posix_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="a732642e09075838bbbca28b3529f13db"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int utime </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const struct <a class="el" href="structutimbuf.html">utimbuf</a> *&#160;</td>
          <td class="paramname"><em>times</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set Modification and Access time of a file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">filename</td><td>file name </td></tr>
    <tr><td class="paramdir"></td><td class="paramname"></td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01407">1407</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

</div>
</div>
<a class="anchor" id="a072435300ac99e8d7c3749f45166e797"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="posix_8h.html#a170745d0d946e79c4c2a056d1d158996">ssize_t</a> write </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>fd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="cpu_8h.html#aea0c7eab1ce1eebb4e879ef4e23c16ee">size_t</a>&#160;</td>
          <td class="paramname"><em>count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX Write count bytes from *buf to fileno fd. </p>
<ul>
<li>man page write (2).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">fd</td><td>POSIX fileno. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">buf</td><td>buffer. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">count</td><td>number of bytes to write. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>count on sucess. </dd>
<dd>
-1 on error with errno set. </dd></dl>

<p>Definition at line <a class="el" href="posix_8c_source.html#l01180">1180</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

<p>Referenced by <a class="el" href="posix_8c_source.html#l00868">fwrite()</a>, and <a class="el" href="send_8c_source.html#l00087">send_message()</a>.</p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="aae2f027325f7e73c3aa5e7dc990bd90d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="posix_8h.html#aed4dabeb9f7c518ded42f930a04abce8">FILE</a>* __iob[<a class="el" href="posix_8h.html#a2c5eecb22513a88c24ae5831a3265e54">MAX_FILES</a>]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>POSIX fileno to POSIX FILE stream table. </p>
<ul>
<li>Note: the index of __iob[] is reffered to "fileno".</li>
<li>Reference: libc/avr-libc-1.8.0/libc/stdio.</li>
<li>stdin = __iob[0].</li>
<li>__iob[1] = stdout.</li>
<li>__iob[2] = stderr. </li>
</ul>

<p>Definition at line <a class="el" href="posix_8c_source.html#l00139">139</a> of file <a class="el" href="posix_8c_source.html">posix.c</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 31 2018 21:22:17 for ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
